Don't adjust DYLD_LIBRARY_PATH in run environments.

Reviewed-by: con
This commit is contained in:
Christian Kamm
2011-04-28 11:35:57 +02:00
parent 53ff5b187c
commit 34e354c8fe

View File

@@ -184,11 +184,10 @@ void Environment::prependOrSetLibrarySearchPath(const QString &value)
#ifdef Q_OS_WIN
const QLatin1String path("PATH");
#elif defined(Q_OS_MAC)
const QLatin1String path("DYLD_LIBRARY_PATH");
#elif defined(Q_OS_UNIX)
#elif defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
const QLatin1String path("LD_LIBRARY_PATH");
#else
// we could set DYLD_LIBRARY_PATH on Mac but it is unnecessary in practice
return;
#endif