diff --git a/src/libs/utils/environment.cpp b/src/libs/utils/environment.cpp index 6ea9ce9d3e5..73a2fff92bb 100644 --- a/src/libs/utils/environment.cpp +++ b/src/libs/utils/environment.cpp @@ -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