1
0
mirror of https://git.FreeBSD.org/src.git synced 2026-06-02 11:24:32 +00: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:
Kyle Evans
2026-05-01 07:19:17 -05:00
parent f4ae41b7ea
commit 8583bcb5b4
+3 -6
View File
@@ -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