diff options
author | OBATA Akio <[email protected]> | 2020-08-02 16:42:31 +0900 |
---|---|---|
committer | TDE Gitea <[email protected]> | 2020-08-09 12:17:53 +0000 |
commit | a9d2c0bdd16dd850fcfe58c040c89c8a6a2268a3 (patch) | |
tree | b3c23037fef8151c3700cc4f61158136f5b1eb21 /qmake/generators/unix/unixmake2.cpp | |
parent | 8704c62dce2ad2218b77d4f74c20b39724aeca26 (diff) | |
download | tqt3-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 <[email protected]>
Diffstat (limited to 'qmake/generators/unix/unixmake2.cpp')
-rw-r--r-- | qmake/generators/unix/unixmake2.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp index ee024d0e0..93b752247 100644 --- a/qmake/generators/unix/unixmake2.cpp +++ b/qmake/generators/unix/unixmake2.cpp @@ -1386,20 +1386,6 @@ void UnixMakefileGenerator::init2() if(!project->isActiveConfig("compile_libtool")) project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_LFLAGS_SONAME"]; } - TQString destdir = project->first("DESTDIR"); - if ( !destdir.isEmpty() && !project->variables()["QMAKE_RPATH"].isEmpty() ) { - TQString rpath_destdir = destdir; - if(TQDir::isRelativePath(rpath_destdir)) { - TQFileInfo fi(Option::fixPathToLocalOS(rpath_destdir)); - if(fi.convertToAbs()) //strange, shouldn't really happen - rpath_destdir = Option::fixPathToTargetOS(rpath_destdir, FALSE); - else - rpath_destdir = fi.filePath(); - } else { - rpath_destdir = Option::fixPathToTargetOS(rpath_destdir, FALSE); - } - project->variables()["QMAKE_LFLAGS"] += project->first("QMAKE_RPATH") + rpath_destdir; - } } TQStringList &quc = project->variables()["QMAKE_EXTRA_UNIX_COMPILERS"]; for(TQStringList::Iterator it = quc.begin(); it != quc.end(); ++it) { |