diff --git a/src/plugins/debugger/debuggeritem.cpp b/src/plugins/debugger/debuggeritem.cpp index c8f6bdcb7ae..a6659506468 100644 --- a/src/plugins/debugger/debuggeritem.cpp +++ b/src/plugins/debugger/debuggeritem.cpp @@ -294,7 +294,7 @@ bool DebuggerItem::addAndroidLldbPythonEnv(const Utils::FilePath &lldbCmd, Utils if (HostOsInfo::isAnyUnixHost()) { const FilePath pythonLibDir = pythonDir.pathAppended("lib"); if (pythonLibDir.exists()) - env.prependOrSet("LD_LIBRARY_PATH", pythonLibDir.toString()); + env.prependOrSetLibrarySearchPath(pythonLibDir); } return true;