From c975ab62fbe7f7e9141a24cc033fb8f0e52ca823 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 27 Oct 2013 12:50:06 +0100 Subject: fix eglibc qemu-sparc builds, -Os does not work for this --- toolchain/eglibc/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'toolchain/eglibc/Makefile') 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 -- cgit v1.2.3