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 /usr.bin | |
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 'usr.bin')
-rw-r--r-- | usr.bin/clang/lld/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/clang/lld/Makefile b/usr.bin/clang/lld/Makefile index ad418e35e558..65a73f2f4c0f 100644 --- a/usr.bin/clang/lld/Makefile +++ b/usr.bin/clang/lld/Makefile @@ -1,10 +1,15 @@ # $FreeBSD$ +.include <src.opts.mk> + LLVM_SRCS= ${SRCTOP}/contrib/llvm LLD_SRCS= ${LLVM_SRCS}/tools/lld PROG_CXX= ld.lld MAN= +.if ${MK_LLD_AS_LD} != "no" +SYMLINKS= ${PROG_CXX} ${BINDIR}/ld +.endif CFLAGS+= -I${LLD_SRCS}/include CFLAGS+= -I${.OBJDIR} |