CONFIG key to disable setting custom rpath option.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-02-19 17:21:51 +02:00
parent 006dc35a4a
commit 48d58de871
2 changed files with 20 additions and 8 deletions

View File

@ -348,10 +348,16 @@ CONFIG(debug, debug|release){
# Path to recource file.
win32:RC_FILE = share/resources/tape.rc
unix:!macx{
noRunPath{ # For enable run qmake with CONFIG+=noRunPath
# do nothing
} else {
unix:!macx{
# suppress the default RPATH
# helps to run the program without Qt Creator
# see problem with path to libqmuparser and libpropertybrowser
QMAKE_LFLAGS_RPATH =
QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\' -Wl,-rpath,$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -Wl,-rpath,$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}"
}
}
# When the GNU linker sees a library, it discards all symbols that it doesn't need.

View File

@ -476,10 +476,16 @@ win32 {
copyToDestdir($$pdftops_path, $$shell_path($${OUT_PWD}/$$DESTDIR))
}
unix:!macx{
noRunPath{ # For enable run qmake with CONFIG+=noRunPath
# do nothing
} else {
unix:!macx{
# suppress the default RPATH
# helps to run the program without Qt Creator
# see problem with path to libqmuparser and libpropertybrowser
QMAKE_LFLAGS_RPATH =
QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\' -Wl,-rpath,$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -Wl,-rpath,$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}"
}
}
# When the GNU linker sees a library, it discards all symbols that it doesn't need.