forked from qt-creator/qt-creator
Fix setting of LD_LIBRARY_PATH in the run environment.
It's now only done if the *target*'s OS is of generic linux flavor. Reviewed-by: con Reviewed-by: Christian Kandeler
This commit is contained in:
@@ -1722,7 +1722,14 @@ void QtVersion::addToEnvironment(Utils::Environment &env) const
|
||||
// Generic:
|
||||
env.set("QTDIR", QDir::toNativeSeparators(versionInfo().value("QT_INSTALL_DATA")));
|
||||
env.prependOrSetPath(versionInfo().value("QT_INSTALL_BINS"));
|
||||
env.prependOrSetLibrarySearchPath(versionInfo().value("QT_INSTALL_LIBS"));
|
||||
|
||||
// set LD_LIBRARY_PATH for generic linux
|
||||
foreach (const ProjectExplorer::Abi &abi, qtAbis()) {
|
||||
if (abi.osFlavor() == ProjectExplorer::Abi::GenericLinuxFlavor) {
|
||||
env.prependOrSet(QLatin1String("LD_LIBRARY_PATH"), versionInfo().value("QT_INSTALL_LIBS"), QLatin1String(":"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Symbian specific:
|
||||
if (supportsTargetId(Constants::S60_DEVICE_TARGET_ID)
|
||||
|
||||
Reference in New Issue
Block a user