diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-27 12:50:06 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-27 12:50:06 +0100 |
commit | c975ab62fbe7f7e9141a24cc033fb8f0e52ca823 (patch) | |
tree | 064cc48f28728c37a8af6b62e7ae3696f920d13a /toolchain/eglibc/Makefile | |
parent | 132384e7ff9490ba20648f0189edd23b8e8fcbc1 (diff) |
fix eglibc qemu-sparc builds, -Os does not work for this
Diffstat (limited to 'toolchain/eglibc/Makefile')
-rw-r--r-- | toolchain/eglibc/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile index b9be77579..12f193c3b 100644 --- a/toolchain/eglibc/Makefile +++ b/toolchain/eglibc/Makefile @@ -3,12 +3,18 @@ include $(TOPDIR)/rules.mk include ../rules.mk -include Makefile.inc -include ${TOPDIR}/mk/buildhlp.mk -# ssp partially supported +# eglibc does not compile with Os on sparc +ifeq ($(ADK_LINUX_SPARC),y) +TARGET_CFLAGS_LIBC:= $(subst Os,O2,$(TARGET_CFLAGS)) +endif + +# ssp not supported TARGET_CFLAGS_LIBC:= $(filter-out -fstack-protector,$(TARGET_CFLAGS_LIBC)) +include Makefile.inc +include ${TOPDIR}/mk/buildhlp.mk + ifeq ($(ADK_TARGET_NO_FPU),y) EGLIBC_CONFOPTS+= --without-fp endif |