mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 09:45:44 +08:00
@@ -5,11 +5,24 @@
|
||||
equals (TEMPLATE, lib) {
|
||||
# Uncomment line below to supress the default RPATH
|
||||
# QMAKE_LFLAGS_RPATH =
|
||||
QMAKE_LFLAGS *= '-Wl,-rpath,\'\$$ORIGIN\''
|
||||
|
||||
macx: QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/
|
||||
else:unix: QMAKE_LFLAGS *= '-Wl,-rpath,\'\$$ORIGIN\''
|
||||
}
|
||||
|
||||
equals (TEMPLATE, app) {
|
||||
QMAKE_LFLAGS *= '-Wl,-rpath,\'\$$ORIGIN/../lib\''
|
||||
# Uncomment line below to supress the default RPATH
|
||||
# QMAKE_LFLAGS_RPATH =
|
||||
|
||||
# Add rpath to externals to run tests without installing.
|
||||
# DYLD_LIBRARY_PATH isn't working anymore since OS X 10.11.
|
||||
unix: QMAKE_LFLAGS *= '-Wl,-rpath,\'$$EXTERNALSDIR\''
|
||||
|
||||
macx {
|
||||
contains(CONFIG, app_bundle): QMAKE_LFLAGS *= -Wl,-rpath,@executable_path/../../../../lib/
|
||||
else: QMAKE_LFLAGS *= -Wl,-rpath,@executable_path/../lib/
|
||||
}
|
||||
else:unix: QMAKE_LFLAGS *= '-Wl,-rpath,\'\$$ORIGIN/../lib\''
|
||||
}
|
||||
|
||||
################################
|
||||
|
||||
@@ -3,7 +3,7 @@ LIBS *= -L$$DestRoot/lib
|
||||
unix:!macx {
|
||||
# Set the rpath-link to find dependent shared libraries when linking
|
||||
# Note: This does not add any rpath into the binaries.
|
||||
LIBS += -Wl,-rpath-link,$$DestRoot/lib
|
||||
LIBS += -Wl,-rpath-link,$$DestRoot/lib -Wl,-rpath-link,$$[QT_INSTALL_LIBS]
|
||||
}
|
||||
|
||||
blackgui {
|
||||
|
||||
Reference in New Issue
Block a user