mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Ensure lld respects the WITH/WITHOUT_SHARED_TOOLCHAIN option
Traditionally, toolchain components such as cc, as, and ld have been built as static executables. The WITH_SHARED_TOOLCHAIN option from src.conf(5) is meant to link these as regular executables, e.g. using shared libraries. The build of ld.lld did not yet check this option. Fix the Makefile so it will do so now. Reported by: Mike Cui <cuicui@gmail.com> PR: 241257 MFC after: 3 days
This commit is contained in:
parent
b46d70fd88
commit
fd9d16bddb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353655
@ -15,6 +15,10 @@ SYMLINKS= ${PROG_CXX} ${BINDIR}/ld
|
||||
MLINKS= ld.lld.1 ld.1
|
||||
.endif
|
||||
|
||||
.if ${MK_SHARED_TOOLCHAIN} == "no"
|
||||
NO_SHARED?= yes
|
||||
.endif
|
||||
|
||||
CFLAGS+= -I${LLD_SRCS}/ELF
|
||||
CFLAGS+= -I${LLD_SRCS}/include
|
||||
CFLAGS+= -I${.OBJDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user