Commit d92dcbb
committed
Fix clang + bfd linker build
To speed up linking 134-based introduced passing -S (no symbol
table/index) for thin archives. The bfd linker cannot handle that and
needs -s, but the check for that was wrong because it did not cover
the case where clang is the compiler but bfd ld is the linker. Fix the
check by passing -s whenever the linker is not mold/gold/lld. This
should only affect linking with bfd ld.
Fixes "/usr/bin/ld: host/obj/third_party/brotli/libcommon.a: error
adding symbols: archive has no index; run ranlib to add one"
Fixes: QTBUG-141153
Change-Id: I2dadcc48a081025e55774d8e5560fc087abd439b
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/684653
Reviewed-by: Michal Klocek <michal.klocek@qt.io>1 parent 84e4fb2 commit d92dcbb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2531 | 2531 | | |
2532 | 2532 | | |
2533 | 2533 | | |
2534 | | - | |
| 2534 | + | |
2535 | 2535 | | |
2536 | 2536 | | |
2537 | 2537 | | |
| |||
0 commit comments