Use the -rpath linker option to set the .so search path.
--HG-- branch : develop
This commit is contained in:
parent
06a5a79f16
commit
c3aba113a2
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user