summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2004-08-26 17:03:09 +0000
committerManuel Novoa III <mjn3@codepoet.org>2004-08-26 17:03:09 +0000
commit9d7a22d351d45808aa88224367cc1dd30e518705 (patch)
treee6b4ce1becdbc3b9b849db2c0c784a9be7001e48 /Rules.mak
parent94a9a5a20973964c88bf91110d587eaef693f522 (diff)
Fixes from gentoo.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index 2f000303d..61e32bfd5 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -220,8 +220,13 @@ ifeq ($(strip $(TARGET_ARCH)),arm)
endif
endif
+ifeq ($(SSP_CFLAGS),)
+SSP_CFLAGS=$(call check_gcc,-fno-stack-protector-all,)
+SSP_CFLAGS+=$(call check_gcc,-fstack-protector,)
+endif
+
# Some nice CFLAGS to work with
-CFLAGS=$(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS) $(CPU_CFLAGS) \
+CFLAGS=$(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS) $(CPU_CFLAGS) $(SSP_CFLAGS) \
-fno-builtin -nostdinc -D_LIBC -I$(TOPDIR)include -I.
ifeq ($(DODEBUG),y)