summaryrefslogtreecommitdiffstats
path: root/qmake/generators/unix/unixmake.cpp
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-02 16:42:31 +0900
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2020-08-09 12:17:53 +0000
commita9d2c0bdd16dd850fcfe58c040c89c8a6a2268a3 (patch)
treeb3c23037fef8151c3700cc4f61158136f5b1eb21 /qmake/generators/unix/unixmake.cpp
parent8704c62dce2ad2218b77d4f74c20b39724aeca26 (diff)
downloadtqt3-a9d2c0bdd16dd850fcfe58c040c89c8a6a2268a3.tar.gz
tqt3-a9d2c0bdd16dd850fcfe58c040c89c8a6a2268a3.zip
Prevent to set build directories as RPATH
It result in unwanted RPATH reference from installed binaries. Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'qmake/generators/unix/unixmake.cpp')
-rw-r--r--qmake/generators/unix/unixmake.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/qmake/generators/unix/unixmake.cpp b/qmake/generators/unix/unixmake.cpp
index 1f97210df..a3532f971 100644
--- a/qmake/generators/unix/unixmake.cpp
+++ b/qmake/generators/unix/unixmake.cpp
@@ -352,11 +352,9 @@ UnixMakefileGenerator::init()
comp_flags += " -version-info " + TQString::number(10*maj + min) +
":" + TQString::number(pat) + ":0";
if(libtoolify[i] != "QMAKE_AR_CMD") {
- TQString rpath = Option::output_dir;
- if(!project->isEmpty("DESTDIR")) {
- rpath = project->first("DESTDIR");
- if(TQDir::isRelativePath(rpath))
- rpath.prepend(Option::output_dir + Option::dir_sep);
+ TQString rpath = project->first("target.path");
+ if(rpath.right(1) != Option::dir_sep) {
+ rpath += Option::dir_sep;
}
comp_flags += " -rpath " + Option::fixPathToTargetOS(rpath, FALSE);
}