aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-13 12:20:32 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-13 12:21:17 +1100
commit66625890a23fa3bf0d5dcaa3432e01dcbe54bc63 (patch)
treed941624a5f3eb359e20447b3bd9d168a0a5065c9 /Makefile.main
parent6665027600101146f1865d5c407947f5fcd96da1 (diff)
downloadskiboot-66625890a23fa3bf0d5dcaa3432e01dcbe54bc63.zip
skiboot-66625890a23fa3bf0d5dcaa3432e01dcbe54bc63.tar.gz
skiboot-66625890a23fa3bf0d5dcaa3432e01dcbe54bc63.tar.bz2
Enable -fstack-protector-strong if supported by compiler
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-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) \