Fix llvm-strip/readobj parameters

Change-Id: I3add593d8ad8791d694f157849e72dd26a6dc4ca
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
BogDan Vatra 2020-05-14 14:05:13 +03:00
parent 2fbcca719e
commit 8e3b83ad55

View File

@ -1609,7 +1609,7 @@ QStringList getQtLibsFromElf(const Options &options, const QString &fileName)
}
if (options.useLLVM)
readElf = QString::fromLatin1("%1 -needed-libs %2").arg(shellQuote(readElf), shellQuote(fileName));
readElf = QString::fromLatin1("%1 --needed-libs %2").arg(shellQuote(readElf), shellQuote(fileName));
else
readElf = QString::fromLatin1("%1 -d -W %2").arg(shellQuote(readElf), shellQuote(fileName));
@ -1915,7 +1915,7 @@ bool stripFile(const Options &options, const QString &fileName)
}
if (options.useLLVM)
strip = QString::fromLatin1("%1 -strip-all %2").arg(shellQuote(strip), shellQuote(fileName));
strip = QString::fromLatin1("%1 --strip-all %2").arg(shellQuote(strip), shellQuote(fileName));
else
strip = QString::fromLatin1("%1 %2").arg(shellQuote(strip), shellQuote(fileName));