From 914b35e6379901c94f72f27c2500b03c7eec7251 Mon Sep 17 00:00:00 2001 From: "Jovany Leandro G.C" Date: Thu, 18 Jul 2019 20:25:21 +0000 Subject: [PATCH] Update lib_radare2.pri Override PREFIX= from command 'qmake PREFIX=' --- src/lib_radare2.pri | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 } }