summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt.prf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-09-29 20:06:05 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-10-20 17:18:16 +0000
commit2d8801a9622ca47e377dfb7e1cb73f1809c764ed (patch)
tree8cde178b850fb09fcddb5809ac8af4dcd41bf8e9 /mkspecs/features/qt.prf
parentbf929938293abd398c2c6f3e88c4774e56f75efa (diff)
support relative paths in QMAKE_RPATHDIR
... and make use of it in qt.prf. [ChangeLog][qmake][Unix] Added support for relative paths in QMAKE_RPATHDIR. Note that this technically breaks backwards compatibility, as relative paths were previously silently resolved against $$_PRO_FILE_PWD_. This was not documented and seems rather useless, so i'm not worried. Change-Id: I855042a8962ab34ad4617899a5b9825af0087f8a Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com> Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'mkspecs/features/qt.prf')
-rw-r--r--mkspecs/features/qt.prf8
1 files changed, 1 insertions, 7 deletions
diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf
index d416a8955a..d200467571 100644
--- a/mkspecs/features/qt.prf
+++ b/mkspecs/features/qt.prf
@@ -167,17 +167,11 @@ qt_module_deps = $$resolve_depends(qt_module_deps, "QT.")
} else {
binpath = $$target.path
}
- rpath = @loader_path
} else {
- QMAKE_LFLAGS += -Wl,-z,origin
binpath = $$target.path
- rpath = $ORIGIN
}
# NOT the /dev property, as INSTALLS use host paths
- relpath = $$relative_path($$[QT_INSTALL_LIBS], $$binpath)
- !equals(relpath, .): \
- rpath = $$rpath/$$relpath
- QMAKE_RPATHDIR += $$rpath
+ QMAKE_RPATHDIR += $$relative_path($$[QT_INSTALL_LIBS], $$binpath)
} else {
QMAKE_RPATHDIR += $$[QT_INSTALL_LIBS/dev]
}