summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2015-08-21 04:03:59 -0700
committerJake Petroules <jake.petroules@petroules.com>2015-08-21 20:53:31 +0000
commitd60e3010e8253bfd68bd670fcccd1ebe97c137e8 (patch)
tree149ce3889985798b8b9bcfbdd38fc49c7db0900d /src/app
parent46910b46c3898f7fe99c5b4afa7c4291a829775c (diff)
downloadqt-creator-d60e3010e8253bfd68bd670fcccd1ebe97c137e8.tar.gz
Qbs: Adapt rpath handling to how it is normally implemented on OS X.
When using rpaths on OS X, the install name prefix should always be set to "@rpath" and the rpaths should be appropriately set to the locations in which that binary looks for its dependencies. While this change is behaviorally identical, it brings the project setup in line with how developers expect these properties to be set, and thus reduces confusion. As an aside, it now correctly follows the principle of relocatability (install name prefixes like @rpath/Frameworks are only partially relocatable as opposed to @rpath alone which is fully relocatable). Change-Id: I7b5cc7a316d2608037ea9ab087029baa85aee2ba Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/app.qbs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/app.qbs b/src/app/app.qbs
index 6f585d6ce6..59034b7191 100644
--- a/src/app/app.qbs
+++ b/src/app/app.qbs
@@ -5,7 +5,7 @@ QtcProduct {
name: project.ide_app_target
consoleApplication: qbs.debugInformation
- cpp.rpaths: qbs.targetOS.contains("osx") ? ["@executable_path/.."]
+ cpp.rpaths: qbs.targetOS.contains("osx") ? ["@executable_path/../Frameworks"]
: ["$ORIGIN/../" + project.libDirName + "/qtcreator"]
cpp.includePaths: [
project.sharedSourcesDir + "/qtsingleapplication",