Skip to content

Commit

Permalink
Unset LD_LIBRARY_PATH when running strip (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Sep 8, 2024
1 parent 8cb9438 commit b00a83d
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 b00a83d

Please sign in to comment.