From f1a0604de4fa92350132b054e2f05fcf6880a750 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 30 Jul 2018 12:38:08 +0000 Subject: [PATCH] Enable ld.lld as bootstrap linker by default on i386 Akin to r327783 for amd64. lld has been usable for amd64 for quite some time, but a couple of issues remained that affected i386. These were recently addressed upstream in lld and merged into FreeBSD or addressed directly in FreeBSD (r326831, r326879, r326897, r326957, r333401, r334626, r336664). Similarly to the intial amd64 commit this change enables lld only as the bootstrap linker (used to link the kernel and userland libraries and executables), while GNU ld.bfd is still installed as /usr/bin/ld and used for ports builds. That will be changed shortly, after an exp-run. This is a recommit of r327823 after additional lld fixes. PR: 225128 (exp-run) Relnotes: Yes Sponsored by: The FreeBSD Foundation --- share/mk/src.opts.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk index 838447f99714..60d0487d3d4d 100644 --- a/share/mk/src.opts.mk +++ b/share/mk/src.opts.mk @@ -311,6 +311,9 @@ __DEFAULT_NO_OPTIONS+=LLVM_LIBUNWIND .endif .if ${__T} == "aarch64" || ${__T} == "amd64" __DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD +.elif ${__T} == "i386" +__DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP +__DEFAULT_NO_OPTIONS+=LLD_IS_LD .else __DEFAULT_NO_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD .endif