summaryrefslogtreecommitdiff
path: root/src/rpath.pri
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpath.pri')
-rw-r--r--src/rpath.pri15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/rpath.pri b/src/rpath.pri
new file mode 100644
index 0000000000..c57ed469f6
--- /dev/null
+++ b/src/rpath.pri
@@ -0,0 +1,15 @@
+macx {
+ # this is needed for the binary itself?
+ QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../PlugIns/
+} else:linux-* {
+ #do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
+ QMAKE_RPATHDIR += \$\$ORIGIN/../lib/qtcreator
+ IDE_PLUGIN_RPATH = $$join(QMAKE_RPATHDIR, ":")
+ message($$QMAKE_RPATHDIR)
+ message($$IDE_PLUGIN_RPATH)
+
+ QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${IDE_PLUGIN_RPATH}\'
+ QMAKE_RPATHDIR =
+}
+
+