summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2020-01-11 08:57:01 -0500
committerBradley Sepos <[email protected]>2020-01-11 08:57:01 -0500
commitfacc52c90b6b41ee180dc2a20fb3e142a3016359 (patch)
treed24ba06b34009c75d94ad96b4dc4a86d47d77889 /make
parent073c2fb84b3ead86d2f2b28cbd737bb936cc0696 (diff)
make: Fix redundant flags added with harden.
Diffstat (limited to 'make')
-rw-r--r--make/include/gcc.defs2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/include/gcc.defs b/make/include/gcc.defs
index d9aa6fdc3..1f1c7d8dd 100644
--- a/make/include/gcc.defs
+++ b/make/include/gcc.defs
@@ -90,7 +90,7 @@ GCC.args.extra.exe++ = $(LDFLAGS)
# checking against static sized buffer overflow flaws. -fstack-protector-strong enables
# stack canaries to detect stack buffer overflows (stack overwrites).
ifeq (1,$(SECURITY.harden))
- GCC.args.extra += $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS) -fstack-protector-strong -D_FORTIFY_SOURCE=2
+ GCC.args.extra += -fstack-protector-strong -D_FORTIFY_SOURCE=2
GCC.args.extra.exe += -fstack-protector-strong
endif