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

Magnus Ihse Bursie ihse at openjdk.org
Wed May 29 16:03:04 UTC 2024


On Wed, 29 May 2024 15:10:58 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:

>> 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.
>
> Marked as reviewed by jiangli (Reviewer).

@jianglizhou Did you verify that this works on your system? Apparently your environment and mine has differed, since you have been able to build with clang without this patch. If you did not, I'd appreciate if you could take it for a spin, so I know I won't break anything in environments similar to your.

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

PR Comment: https://git.openjdk.org/jdk/pull/19456#issuecomment-2137761321


More information about the build-dev mailing list