forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.7'
Conflicts: src/plugins/debugger/debuggerruncontrol.cpp Change-Id: I72882df605bc3fc8a8d20118fd4e49207ac92664
This commit is contained in:
@@ -49,8 +49,10 @@ public:
|
||||
toReplace.append(':');
|
||||
toReplace.append(lib.path());
|
||||
|
||||
if (ldLibraryPath.startsWith(toReplace))
|
||||
set("LD_LIBRARY_PATH", ldLibraryPath.remove(0, toReplace.length()));
|
||||
if (ldLibraryPath.startsWith(toReplace + ':'))
|
||||
set("LD_LIBRARY_PATH", ldLibraryPath.remove(0, toReplace.length() + 1));
|
||||
else if (ldLibraryPath == toReplace)
|
||||
unset("LD_LIBRARY_PATH");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user