Prefer MK_SSP=no to SSP_CFLAGS=
It is more idiomatic. CFLAGS is only augmented with $SSP_CFLAGS when
$MK_SSP != "no".
Reviewed by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31401
(cherry picked from commit 61ed578ee6
)
This commit is contained in:
parent
19cbaf34a3
commit
952226eedb
@ -726,7 +726,6 @@ BSARGS= DESTDIR= \
|
||||
MAKEOBJDIRPREFIX= \
|
||||
BOOTSTRAPPING=${BOOTSTRAPPING_OSRELDATE} \
|
||||
BWPHASE=${.TARGET:C,^_,,} \
|
||||
SSP_CFLAGS= \
|
||||
-DNO_CPU_CFLAGS \
|
||||
-DNO_LINT \
|
||||
-DNO_PIC \
|
||||
@ -740,6 +739,7 @@ BSARGS= DESTDIR= \
|
||||
MK_MAN=no \
|
||||
MK_PROFILE=no \
|
||||
MK_RETPOLINE=no \
|
||||
MK_SSP=no \
|
||||
MK_TESTS=no \
|
||||
MK_WERROR=no \
|
||||
MK_INCLUDES=yes \
|
||||
@ -759,7 +759,6 @@ TMAKE= \
|
||||
DESTDIR= \
|
||||
BOOTSTRAPPING=${BOOTSTRAPPING_OSRELDATE} \
|
||||
BWPHASE=${.TARGET:C,^_,,} \
|
||||
SSP_CFLAGS= \
|
||||
-DNO_CPU_CFLAGS \
|
||||
-DNO_LINT \
|
||||
MK_CTF=no \
|
||||
@ -768,6 +767,7 @@ TMAKE= \
|
||||
MK_CLANG_FULL=no \
|
||||
MK_LLDB=no \
|
||||
MK_RETPOLINE=no \
|
||||
MK_SSP=no \
|
||||
MK_TESTS=no \
|
||||
MK_WERROR=no
|
||||
|
||||
@ -792,7 +792,6 @@ KTMAKE= \
|
||||
OBJROOT='$${OBJTOP}/' \
|
||||
MAKEOBJDIRPREFIX= \
|
||||
BOOTSTRAPPING=${BOOTSTRAPPING_OSRELDATE} \
|
||||
SSP_CFLAGS= \
|
||||
-DNO_CPU_CFLAGS \
|
||||
-DNO_LINT \
|
||||
-DNO_PIC \
|
||||
@ -801,6 +800,7 @@ KTMAKE= \
|
||||
MK_HTML=no \
|
||||
MK_MAN=no \
|
||||
MK_PROFILE=no \
|
||||
MK_SSP=no \
|
||||
MK_RETPOLINE=no \
|
||||
MK_WERROR=no
|
||||
|
||||
@ -2780,7 +2780,6 @@ NXBMAKEARGS+= \
|
||||
-DNO_SHARED \
|
||||
-DNO_CPU_CFLAGS \
|
||||
-DNO_PIC \
|
||||
SSP_CFLAGS= \
|
||||
MK_CASPER=no \
|
||||
MK_CLANG_EXTRAS=no \
|
||||
MK_CLANG_FORMAT=no \
|
||||
@ -2797,6 +2796,7 @@ NXBMAKEARGS+= \
|
||||
MK_RETPOLINE=no \
|
||||
MK_SENDMAIL=no \
|
||||
MK_SVNLITE=no \
|
||||
MK_SSP=no \
|
||||
MK_TESTS=no \
|
||||
MK_WERROR=no \
|
||||
MK_ZFS=no
|
||||
|
@ -99,7 +99,7 @@ build${libcompat}: .PHONY
|
||||
${_+_}cd ${.CURDIR}/${_dir}; \
|
||||
WORLDTMP=${WORLDTMP} \
|
||||
MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}" \
|
||||
${MAKE} SSP_CFLAGS= DESTDIR= \
|
||||
${MAKE} DESTDIR= \
|
||||
OBJTOP=${LIBCOMPAT_OBJTOP} \
|
||||
OBJROOT='$${OBJTOP}/' \
|
||||
MAKEOBJDIRPREFIX= \
|
||||
@ -108,6 +108,7 @@ build${libcompat}: .PHONY
|
||||
-DNO_CPU_CFLAGS \
|
||||
MK_CTF=no \
|
||||
MK_RETPOLINE=no \
|
||||
MK_SSP=no \
|
||||
MK_WERROR=no \
|
||||
${_t}
|
||||
.endfor
|
||||
|
@ -1,10 +1,9 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SSP_CFLAGS=
|
||||
|
||||
NO_WMISSING_VARIABLE_DECLARATIONS=
|
||||
|
||||
.include <src.opts.mk>
|
||||
MK_SSP= no
|
||||
|
||||
.if !defined(BUILDING_TESTS)
|
||||
|
||||
|
@ -12,10 +12,10 @@ SHLIBDIR= ${LIBDIR}
|
||||
|
||||
NO_PIC=
|
||||
MK_PROFILE= no
|
||||
MK_SSP= no
|
||||
|
||||
WARNS?= 0
|
||||
|
||||
SSP_CFLAGS=
|
||||
CFLAGS+= -DNDEBUG
|
||||
CFLAGS+= -DHAVE_RPC_XDR_H=0
|
||||
CFLAGS+= -DSANITIZER_SUPPORTS_WEAK_HOOKS=0
|
||||
|
@ -129,8 +129,6 @@ LD_FLAGS+= -m elf_i386_fbsd
|
||||
AFLAGS+= --32
|
||||
.endif
|
||||
|
||||
SSP_CFLAGS=
|
||||
|
||||
# Add in the no float / no SIMD stuff and announce we're freestanding
|
||||
# aarch64 and riscv don't have -msoft-float, but all others do.
|
||||
CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD}
|
||||
|
@ -39,7 +39,6 @@ BSARGS= DESTDIR= \
|
||||
MAKEOBJDIRPREFIX= \
|
||||
BOOTSTRAPPING=${OSRELDATE} \
|
||||
BWPHASE=${.TARGET} \
|
||||
SSP_CFLAGS= \
|
||||
-DNO_CPU_CFLAGS \
|
||||
-DNO_LINT \
|
||||
-DNO_PIC \
|
||||
@ -53,6 +52,7 @@ BSARGS= DESTDIR= \
|
||||
MK_MAN=no \
|
||||
MK_PROFILE=no \
|
||||
MK_RETPOLINE=no \
|
||||
MK_SSP=no \
|
||||
MK_TESTS=no \
|
||||
MK_WERROR=no \
|
||||
MK_INCLUDES=yes \
|
||||
|
Loading…
Reference in New Issue
Block a user