diff options
author | Rafael Roquetto <rafael.roquetto@qt.io> | 2022-04-01 11:01:29 +1000 |
---|---|---|
committer | Rafael Roquetto <rafael.roquetto@qt.io> | 2022-04-01 10:15:50 +0000 |
commit | 3fa560aeb038a97f6111c21e8c987568382775c2 (patch) | |
tree | 2c243a6d72014e7024995b3641aa275138cb9df8 | |
parent | bd2aa07fa5b463f9274d2fc1ffea1ad432ca2b83 (diff) | |
download | qt-creator-3fa560aeb038a97f6111c21e8c987568382775c2.tar.gz |
QNX: don't set LD_LIBRARY_PATH
Setting this variable causes an instance of LD_LIBRARY_PATH containing
<qtdir>/lib to be added to the environment. In the context of QNX x64,
this tricks the Linux dynamic loader into attempto to the target Qt
libraries (e.g. libQt6Core.so) instead of the host ones when running
host tools such as qmake, as the loader
will find a matching library dependency in LD_LIBRARY_PATH before it can
even reach the ld cache. This will obviously fail.
An instance of LD_LIBRARY_PATH containing the path to the Qt libraries
should not be required anyway - these explicitly passed as linker flags
to the compiler driver. Host tools rely on the builting RPATH of their
binaries.
Task-number: QTCREATORBUG-27287
Change-Id: I0527a7a77c6c76fa0229ea65695cc0d9f7d9811b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
-rw-r--r-- | src/plugins/qnx/qnxqtversion.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/qnx/qnxqtversion.cpp b/src/plugins/qnx/qnxqtversion.cpp index 9bcb4ed831..bb935987c2 100644 --- a/src/plugins/qnx/qnxqtversion.cpp +++ b/src/plugins/qnx/qnxqtversion.cpp @@ -156,7 +156,6 @@ void QnxQtVersion::addToEnvironment(const Kit *k, Environment &env) const QtSupport::QtVersion::addToEnvironment(k, env); updateEnvironment(); env.modify(m_qnxEnv); - env.prependOrSetLibrarySearchPath(libraryPath()); } void QnxQtVersion::setupQmakeRunEnvironment(Environment &env) const |