Add WITH_LLD_AS_LD build knob
authoremaste <emaste@FreeBSD.org>
Fri, 25 Nov 2016 13:15:28 +0000 (13:15 +0000)
committeremaste <emaste@FreeBSD.org>
Fri, 25 Nov 2016 13:15:28 +0000 (13:15 +0000)
commit3e20f5ea69ef19bee41a27eec39ba352a4af396d
tree496872722553ea0235ffd8193cf9d9e1570d9def
parentc587e876ec32761f1fc8c7c88de9b2dc5c489f8b
Add WITH_LLD_AS_LD build knob

If set it installs LLD as /usr/bin/ld.  LLD (as of version 3.9) is not
capable of linking the world and kernel, but can self-host and link many
substantial applications. GNU ld continues to be used for the world and
kernel build, regardless of how this knob is set.

It is on by default for arm64, and off for all other CPU architectures.

Sponsored by: The FreeBSD Foundation
Makefile.inc1
gnu/usr.bin/binutils/ld/Makefile
share/mk/src.opts.mk
tools/build/options/WITHOUT_LLD_AS_LD [new file with mode: 0644]
tools/build/options/WITH_LLD_AS_LD [new file with mode: 0644]
usr.bin/clang/lld/Makefile