diff options
author | OBATA Akio <obache@wizdas.com> | 2020-08-02 16:42:31 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-02-02 01:57:23 +0100 |
commit | f9ac48efadbb70f72b88c71d220ab857854374c2 (patch) | |
tree | 29cedc6f80d078717d1b7bdd6be89a5f4fa6db10 /qmake/generators/unix/unixmake.cpp | |
parent | d5d6fa9adba9770cd5dcec85aea15999cc816e7c (diff) | |
download | qt3-f9ac48efadbb70f72b88c71d220ab857854374c2.tar.gz qt3-f9ac48efadbb70f72b88c71d220ab857854374c2.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>
(cherry picked from commit 5b1f8617d1361bdf7dd3b64fc953623fc8e01d96)
Diffstat (limited to 'qmake/generators/unix/unixmake.cpp')
-rw-r--r-- | qmake/generators/unix/unixmake.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/qmake/generators/unix/unixmake.cpp b/qmake/generators/unix/unixmake.cpp index c70eba9..d41a983 100644 --- a/qmake/generators/unix/unixmake.cpp +++ b/qmake/generators/unix/unixmake.cpp @@ -352,11 +352,9 @@ UnixMakefileGenerator::init() comp_flags += " -version-info " + QString::number(10*maj + min) + ":" + QString::number(pat) + ":0"; if(libtoolify[i] != "QMAKE_AR_CMD") { - QString rpath = Option::output_dir; - if(!project->isEmpty("DESTDIR")) { - rpath = project->first("DESTDIR"); - if(QDir::isRelativePath(rpath)) - rpath.prepend(Option::output_dir + Option::dir_sep); + QString rpath = project->first("target.path"); + if(rpath.right(1) != Option::dir_sep) { + rpath += Option::dir_sep; } comp_flags += " -rpath " + Option::fixPathToTargetOS(rpath, FALSE); } |