diff --git a/src/lib_radare2.pri b/src/lib_radare2.pri index 315f2320..f747c6ee 100644 --- a/src/lib_radare2.pri +++ b/src/lib_radare2.pri @@ -36,9 +36,9 @@ win32 { -lr_sdb } else { macx|bsd { - PREFIX=/usr/local + R2PREFIX=/usr/local } else { - PREFIX=/usr + R2PREFIX=/usr } USE_PKGCONFIG = 1 R2_USER_PKGCONFIG = $$(HOME)/bin/prefix/radare2/lib/pkgconfig @@ -47,23 +47,23 @@ win32 { PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2_USER_PKGCONFIG } else { unix { - exists($$PREFIX/lib/pkgconfig/r_core.pc) { - PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$PREFIX/lib/pkgconfig + exists($$R2PREFIX/lib/pkgconfig/r_core.pc) { + PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2PREFIX/lib/pkgconfig } else { - LIBS += -L$$PREFIX/lib - R2_INCLUDEPATH += $$PREFIX/include/libr + LIBS += -L$$R2PREFIX/lib + R2_INCLUDEPATH += $$R2PREFIX/include/libr USE_PKGCONFIG = 0 } } macx { - LIBS += -L$$PREFIX/lib - R2_INCLUDEPATH += $$PREFIX/include/libr + LIBS += -L$$R2PREFIX/lib + R2_INCLUDEPATH += $$R2PREFIX/include/libr USE_PKGCONFIG = 0 } bsd { !exists($$PKG_CONFIG_PATH/r_core.pc) { - LIBS += -L$$PREFIX/lib - R2_INCLUDEPATH += $$PREFIX/include/libr + LIBS += -L$$R2PREFIX/lib + R2_INCLUDEPATH += $$R2PREFIX/include/libr USE_PKGCONFIG = 0 } }