diff options
author | Ed Maste <emaste@FreeBSD.org> | 2016-11-25 13:15:28 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2016-11-25 13:15:28 +0000 |
commit | 0aa5466e7d5279f04c22add1ee218a879753b94e (patch) | |
tree | 496872722553ea0235ffd8193cf9d9e1570d9def /gnu | |
parent | 2641e757426b0b92d46421eeceb63f24ac002566 (diff) | |
download | src-0aa5466e7d5279f04c22add1ee218a879753b94e.tar.gz src-0aa5466e7d5279f04c22add1ee218a879753b94e.zip |
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
Notes
Notes:
svn path=/head/; revision=309142
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/ld/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile index 5bc3846a1434..6fcc69a479fc 100644 --- a/gnu/usr.bin/binutils/ld/Makefile +++ b/gnu/usr.bin/binutils/ld/Makefile @@ -49,7 +49,9 @@ CLEANFILES+= ldemul-list.h stringify.sed FILES= ${LDSCRIPTS:S|^|ldscripts/|} FILESDIR= ${SCRIPTDIR} +.if ${MK_LLD_AS_LD} == "no" LINKS= ${BINDIR}/ld.bfd ${BINDIR}/ld +.endif HOST= ${TARGET_TUPLE} LIBSEARCHPATH= \"=/lib\":\"=/usr/lib\" |