adopted the the new dyld on macOS Monterey.
This commit is contained in:
@@ -62,7 +62,11 @@ PDumpOutputHandler::PDumpOutputHandler(QVector<QString> &cmd)
|
||||
|
||||
// make sure that the system environment variables are properly set
|
||||
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||
#if defined(Q_OS_DARWIN)
|
||||
env.insert("DYLD_LIBRARY_PATH", env.value("ROOTSYS") + "/lib:" + env.value("DYLD_LIBRARY_PATH"));
|
||||
#else
|
||||
env.insert("LD_LIBRARY_PATH", env.value("ROOTSYS") + "/lib:" + env.value("LD_LIBRARY_PATH"));
|
||||
#endif
|
||||
fProc->setProcessEnvironment(env);
|
||||
|
||||
// Set up the command and arguments.
|
||||
|
||||
Reference in New Issue
Block a user