aboutsummaryrefslogtreecommitdiffstats
path: root/src/rpath.pri
diff options
context:
space:
mode:
authorDaniel Molkentin <daniel.molkentin@nokia.com>2009-01-21 08:50:53 +0100
committerDaniel Molkentin <daniel.molkentin@nokia.com>2009-01-21 09:14:22 +0100
commitb18fe47043ec716a101b4b43f80ec107d6d23600 (patch)
tree581c27f5f10f8e1340df412de75bc5af772aeee7 /src/rpath.pri
parent194175cce70b238dea014e4e4e1ceb4b95290ec0 (diff)
Fixes: make install works on linux
Details: Creator on Linux works now in two modes: 1) out of the build dir (shadow builds to be tested) 2) make INSTALL_ROOT=/prefix install
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 =
+}
+
+