Skip to content

Commit

Permalink
Unset LD_LIBRARY_PATH when running strip (probonopd#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored and omergoktas committed Oct 12, 2024
1 parent 0a29c57 commit 5734444
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 35 deletions.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int main(int argc, char* argv[])
runStripEnabled = false;
} else if (argument == QByteArray("-bundle-non-qt-libs")) {
LogDebug() << "Argument found:" << argument;
bundleAllButCoreLibs = true;
bundleAllButBlacklistedLibs = true;
} else if (argument.startsWith(QByteArray("-verbose"))) {
LogDebug() << "Argument found:" << argument;
int index = argument.indexOf("=");
Expand Down
4 changes: 3 additions & 1 deletion shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,9 @@ void runStrip(const QString &binaryPath)
LogDebug() << "Using strip:";
LogDebug() << " stripping" << resolvedPath;
QProcess strip;
strip.setProcessEnvironment(systemEnvironment());
QProcessEnvironment stripEnv(systemEnvironment());
stripEnv.remove("LD_LIBRARY_PATH");
strip.setProcessEnvironment(stripEnv);
strip.start("strip", QStringList() << resolvedPath);
if (!strip.waitForStarted()) {
if(strip.errorString().contains("execvp: No such file or directory")) {
Expand Down
33 changes: 0 additions & 33 deletions tools/linuxdeployqt/CMakeLists.txt

This file was deleted.

0 comments on commit 5734444

Please sign in to comment.