[PATCH] D124954: ld.lld: Respect LDEMULATION environment variable.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 4 13:53:13 PDT 2022
MaskRay added a comment.
In D124954#3492089 <https://reviews.llvm.org/D124954#3492089>, @shlevy wrote:
> @MaskRay The use case which led to this for me is building gmp. Its configure script uses `ld --help` to look for the `auto-import` string to determine if the linker supports shared linking, which doesn't work as the linker defaults to the elf driver. With this patch, I can just set LDEMULATION for the build and have configure detect correctly.
FWIW the default build of gmp works with lld and that's many distributions are already using.
If there is a missing feature, ISTM the right way is to fix the gmp build system.
Many linkers don't have the emulation concept of GNU ld. They just provide some simulation and that simulation works quite well in practice (tens of thousands of FreeBSD / Gentoo packages are buildable without LDEMULATION).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124954/new/
https://reviews.llvm.org/D124954
More information about the llvm-commits
mailing list