2010-02-01 16:37:11 +01:00
|
|
|
macx {
|
2011-06-01 20:58:49 +02:00
|
|
|
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Plugins/
|
2010-02-01 16:37:11 +01:00
|
|
|
} else:linux-* {
|
|
|
|
#do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
|
|
|
|
# this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var
|
2010-02-04 00:26:47 +01:00
|
|
|
QMAKE_RPATHDIR += \$\$ORIGIN/../$$GCS_LIBRARY_BASENAME/openpilotgcs
|
2010-02-04 00:52:51 +01:00
|
|
|
GCS_PLUGIN_RPATH = $$join(QMAKE_RPATHDIR, ":")
|
2010-02-01 16:37:11 +01:00
|
|
|
|
2010-02-04 00:52:51 +01:00
|
|
|
QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${GCS_PLUGIN_RPATH}\'
|
2010-02-01 16:37:11 +01:00
|
|
|
QMAKE_RPATHDIR =
|
|
|
|
}
|