Skip to content

Commit

Permalink
Unset LD_LIBRARY_PATH when running strip
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Sep 8, 2024
1 parent 8cb9438 commit 5e5ecf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/linuxdeployqt/shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,9 @@ void runStrip(const QString &binaryPath)
LogDebug() << "Using strip:";
LogDebug() << " stripping" << resolvedPath;
QProcess strip;
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.remove("LD_LIBRARY_PATH");
strip.setProcessEnvironment(env);
strip.start("strip", QStringList() << resolvedPath);
if (!strip.waitForStarted()) {
if(strip.errorString().contains("execvp: No such file or directory")){
Expand Down

0 comments on commit 5e5ecf7

Please sign in to comment.