Use the -rpath linker option to set the .so search path.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-24 23:06:16 +03:00
parent 06a5a79f16
commit c3aba113a2
2 changed files with 12 additions and 0 deletions

View File

@ -165,6 +165,12 @@ CONFIG(debug, debug|release){
# Path to recource file. # Path to recource file.
win32:RC_FILE = share/resources/tape.rc win32:RC_FILE = share/resources/tape.rc
unix:!macx{
# suppress the default RPATH
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. # When the GNU linker sees a library, it discards all symbols that it doesn't need.
# Dependent library go first. # Dependent library go first.

View File

@ -2086,6 +2086,12 @@ win32 {
copyToDestdir($$pdftops_path, $$shell_path($${OUT_PWD}/$$DESTDIR)) copyToDestdir($$pdftops_path, $$shell_path($${OUT_PWD}/$$DESTDIR))
} }
unix:!macx{
# suppress the default RPATH
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. # When the GNU linker sees a library, it discards all symbols that it doesn't need.
# Dependent library go first. # Dependent library go first.