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:
+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