2 QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Plugins/
4 #do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
5 # this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var
6 QMAKE_RPATHDIR = \$\$ORIGIN/../$$GCS_LIBRARY_BASENAME/openpilotgcs
7 QMAKE_RPATHDIR += \$\$ORIGIN/../$$GCS_LIBRARY_BASENAME/qt5
8 GCS_PLUGIN_RPATH = $$join(QMAKE_RPATHDIR, ":")
10 QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${GCS_PLUGIN_RPATH}\'