summaryrefslogtreecommitdiff
path: root/toolchain/glibc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-18 22:38:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-18 22:38:13 +0100
commit543317246450d28830c36dd9489e9d8c0efc0755 (patch)
tree4f75304a2849670645ed14da21958479d37ff4f2 /toolchain/glibc/Makefile
parent2e1568ff598de94efdaa37a5b504cbd70db0a358 (diff)
handle ssp support for glibc/eglibc/gcc
Diffstat (limited to 'toolchain/glibc/Makefile')
-rw-r--r--toolchain/glibc/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index d492b9837..f466021a7 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -5,11 +5,14 @@ include $(TOPDIR)/rules.mk
include ../rules.mk
# glibc does not compile with Os
-TARGET_CFLAGS:=$(subst Os,O2,$(TARGET_CFLAGS))
+TARGET_CFLAGS:= $(subst Os,O2,$(TARGET_CFLAGS))
ifneq ($(ADK_DEBUG),)
-TARGET_CFLAGS+=-O2
+TARGET_CFLAGS+= -O2
endif
+# ssp partially supported
+TARGET_CFLAGS:= $(filter-out -fstack-protector,$(TARGET_CFLAGS))
+
include Makefile.inc
include ${TOPDIR}/mk/buildhlp.mk