mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-29 08:08:37 +00:00
retire SHARED_TOOLCHAIN knob
Toolchain components were historically statically linked. They became
normal dynamically linked executables in commit 6ab18ea64d
. There is
no need to keep a special case build option for the toolchain; users who
want statically linked toolchain (or any other) components can use the
existing NO_SHARED knob.
Reviewed by: dim, sjg
Relnotes: Yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41266
This commit is contained in:
parent
83453b46e8
commit
77f6be4484
@ -1532,12 +1532,6 @@ as a set-user-ID root program.
|
||||
Do not build the
|
||||
.Bx 4.4
|
||||
legacy docs.
|
||||
.It Va WITHOUT_SHARED_TOOLCHAIN
|
||||
Build the toolchain binaries as statically linked executables.
|
||||
The set includes
|
||||
.Xr cc 1 ,
|
||||
.Xr make 1
|
||||
and necessary utilities like assembler, linker and library archive manager.
|
||||
.It Va WITH_SORT_THREADS
|
||||
Enable threads in
|
||||
.Xr sort 1 .
|
||||
|
@ -64,9 +64,6 @@ WITH_META_STATS= t
|
||||
.endif
|
||||
|
||||
# toolchains can be a pain - especially bootstrappping them
|
||||
.if ${MACHINE} == "host"
|
||||
MK_SHARED_TOOLCHAIN= no
|
||||
.endif
|
||||
TOOLCHAIN_VARS= AS AR CC CLANG_TBLGEN CXX CPP LD NM OBJCOPY RANLIB \
|
||||
STRINGS SIZE LLVM_TBLGEN
|
||||
_toolchain_bin_CLANG_TBLGEN= /usr/bin/clang-tblgen
|
||||
|
@ -168,7 +168,6 @@ __DEFAULT_YES_OPTIONS = \
|
||||
SENDMAIL \
|
||||
SERVICESDB \
|
||||
SETUID_LOGIN \
|
||||
SHARED_TOOLCHAIN \
|
||||
SHAREDOCS \
|
||||
SOURCELESS \
|
||||
SOURCELESS_HOST \
|
||||
|
@ -1,6 +0,0 @@
|
||||
.\" $FreeBSD$
|
||||
Build the toolchain binaries as statically linked executables.
|
||||
The set includes
|
||||
.Xr cc 1 ,
|
||||
.Xr make 1
|
||||
and necessary utilities like assembler, linker and library archive manager.
|
@ -1,6 +0,0 @@
|
||||
.\" $FreeBSD$
|
||||
Build the toolchain binaries as dynamically linked executables.
|
||||
The set includes
|
||||
.Xr cc 1 ,
|
||||
.Xr make 1
|
||||
and necessary utilities like assembler, linker and library archive manager.
|
@ -11,9 +11,6 @@ NO_WMISSING_VARIABLE_DECLARATIONS=
|
||||
|
||||
CFLAGS+=-I. -I${.CURDIR}
|
||||
|
||||
.if ${MK_SHARED_TOOLCHAIN} == "no"
|
||||
NO_SHARED?= yes
|
||||
.endif
|
||||
LINKS= ${BINDIR}/ar ${BINDIR}/ranlib
|
||||
MLINKS= ar.1 ranlib.1
|
||||
|
||||
|
@ -18,10 +18,6 @@ MLINKS= ${MAN} b${MAN}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no"
|
||||
NO_SHARED?= YES
|
||||
.endif
|
||||
|
||||
# hack to not add tests to tests subdir since this is included from
|
||||
# there and to avoid renaming things that require changes to generated
|
||||
# files.
|
||||
|
@ -12,11 +12,6 @@ SRCS+= driver.cpp
|
||||
|
||||
CFLAGS.driver.cpp+= -Dclang_main=main
|
||||
|
||||
.if ${MK_SHARED_TOOLCHAIN} == "no"
|
||||
NO_SHARED?= yes
|
||||
|
||||
.endif
|
||||
|
||||
LINKS= ${BINDIR}/clang ${BINDIR}/clang++ \
|
||||
${BINDIR}/clang ${BINDIR}/clang-cpp
|
||||
MLINKS= clang.1 clang++.1 \
|
||||
|
@ -16,10 +16,6 @@ SYMLINKS= ${PROG_CXX} ${BINDIR}/ld
|
||||
MLINKS= ld.lld.1 ld.1
|
||||
.endif
|
||||
|
||||
.if ${MK_SHARED_TOOLCHAIN} == "no"
|
||||
NO_SHARED?= yes
|
||||
.endif
|
||||
|
||||
.include "${SRCTOP}/lib/clang/llvm.pre.mk"
|
||||
|
||||
CFLAGS+= -I${LLD_SRCS}/ELF
|
||||
|
Loading…
Reference in New Issue
Block a user