RFR: 8333189: Make sure clang on linux uses lld as linker

Magnus Ihse Bursie ihse at openjdk.org
Wed May 29 15:07:31 UTC 2024


When compiling with clang on linux, clang can decide to pick up the bfd linker instead of lld, the LLVM linker. This will invalidate assumptions about command lines that are passed on to the linker. We should use -fuse-ld=lld to force clang to always pick lld as the linker, so we can be sure that the command lines will work.

-------------

Commit messages:
 - 8333189: Make sure clang on linux uses lld as linker

Changes: https://git.openjdk.org/jdk/pull/19456/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19456&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8333189
  Stats: 10 lines in 4 files changed: 8 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/19456.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19456/head:pull/19456

PR: https://git.openjdk.org/jdk/pull/19456


More information about the build-dev mailing list