Skip to content

Commit 5e5ecf7

Browse files
authored
Unset LD_LIBRARY_PATH when running strip
#608
1 parent 8cb9438 commit 5e5ecf7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/linuxdeployqt/shared.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,9 @@ void runStrip(const QString &binaryPath)
10831083
LogDebug() << "Using strip:";
10841084
LogDebug() << " stripping" << resolvedPath;
10851085
QProcess strip;
1086+
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
1087+
env.remove("LD_LIBRARY_PATH");
1088+
strip.setProcessEnvironment(env);
10861089
strip.start("strip", QStringList() << resolvedPath);
10871090
if (!strip.waitForStarted()) {
10881091
if(strip.errorString().contains("execvp: No such file or directory")){

0 commit comments

Comments
 (0)