svn commit: r336901 - head/share/mk

Ed Maste emaste at FreeBSD.org
Mon Jul 30 12:38:09 UTC 2018


Author: emaste
Date: Mon Jul 30 12:38:08 2018
New Revision: 336901
URL: https://svnweb.freebsd.org/changeset/base/336901

Log:
  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

Modified:
  head/share/mk/src.opts.mk

Modified: head/share/mk/src.opts.mk
==============================================================================
--- head/share/mk/src.opts.mk	Mon Jul 30 12:22:49 2018	(r336900)
+++ head/share/mk/src.opts.mk	Mon Jul 30 12:38:08 2018	(r336901)
@@ -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


More information about the svn-src-head mailing list