mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
Revert "build: provide a FORTIFY_SOURCE.<src file> override"
This reverts commit c46a0b5907. It broke
the build and I'm not awake yet.
This commit is contained in:
1 parent
f4ae41b7ea
commit
8583bcb5b4
1 file changed
+3
-6
+3
-6
@@ -321,12 +321,9 @@ SSP_CFLAGS?= -fstack-protector-strong
|
||||
.endif
|
||||
CFLAGS+= ${SSP_CFLAGS}
|
||||
.endif # SSP
|
||||
|
||||
.if empty(CFLAGS:M-D_FORTIFY_SOURCE*)
|
||||
CFLAGS+= -D_FORTIFY_SOURCE=${FORTIFY_SOURCE.${.IMPSRC:T}:U${FORTIFY_SOURCE}}
|
||||
.endif
|
||||
.if empty(CXXFLAGS:M-D_FORTIFY_SOURCE*)
|
||||
CXXFLAGS+= -D_FORTIFY_SOURCE=${FORTIFY_SOURCE.${.IMPSRC:T}:U${FORTIFY_SOURCE}}
|
||||
.if ${FORTIFY_SOURCE} > 0
|
||||
CFLAGS+= -D_FORTIFY_SOURCE=${FORTIFY_SOURCE}
|
||||
CXXFLAGS+= -D_FORTIFY_SOURCE=${FORTIFY_SOURCE}
|
||||
.endif
|
||||
|
||||
# Additional flags passed in CFLAGS and CXXFLAGS when MK_DEBUG_FILES is
|
||||
|
||||
Reference in new issue
Block a user