aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.main2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main
index ccfba6c..71bce5d 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -73,8 +73,8 @@ ifeq ($(STACK_CHECK),1)
CFLAGS += -fstack-protector-all -pg
CPPFLAGS += -DSTACK_CHECK_ENABLED
else
-# XXX Add -fstack-protector-strong on gcc 4.9
CFLAGS += -fstack-protector
+CFLAGS += $(call try-cflag,$(CC),-fstack-protector-strong)
endif
CFLAGS += $(call try-cflag,$(CC),-Wjump-misses-init) \