Enable lld as the system linker by default on amd64
The migration to LLVM's lld linker has been in progress for quite some time - about three years ago I opened an upstream LLVM meta-bug to track issues using lld as FreeBSD's linker, and about 1.5 years ago requested the first exp-run with lld as the system linker. As of r327783 we enabled LLD_BOOTSTRAP by default on amd64, using lld as the linker to link the kernel and world, but GNU ld was still installed as /usr/bin/ld. The vast majority of issues observed when building ports with lld as the system linker have now been solved, so set LLD_IS_LD by default on amd64 and install lld as /usr/bin/ld. A small number of port failures remain and these will be addressed in the near future. Thanks to antoine@ for handling the exp-runs, krion@ for investigating many port failures and adding LLD_UNSAFE or other fixes or workarounds, and everyone who helped investigate, fix or tag ports. PR: 214864 (exp-run) Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
b3bc3d7925
commit
1bf8f95706
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334391
@ -263,11 +263,8 @@ __DEFAULT_YES_OPTIONS+=LLVM_LIBUNWIND
|
|||||||
.else
|
.else
|
||||||
__DEFAULT_NO_OPTIONS+=LLVM_LIBUNWIND
|
__DEFAULT_NO_OPTIONS+=LLVM_LIBUNWIND
|
||||||
.endif
|
.endif
|
||||||
.if ${__T} == "aarch64"
|
.if ${__T} == "aarch64" || ${__T} == "amd64"
|
||||||
__DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD
|
__DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD
|
||||||
.elif ${__T} == "amd64"
|
|
||||||
__DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP
|
|
||||||
__DEFAULT_NO_OPTIONS+=LLD_IS_LD
|
|
||||||
.else
|
.else
|
||||||
__DEFAULT_NO_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD
|
__DEFAULT_NO_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user