From ba1029c2f563db27a48957eaf1f989ad9ee1ba7e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 12 Oct 2012 11:35:32 +0200 Subject: use TARGET_CFLAGS_LIBC without ABI cflags for glibc --- toolchain/glibc/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'toolchain/glibc/Makefile') diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile index 16791824e..98a01d9c8 100644 --- a/toolchain/glibc/Makefile +++ b/toolchain/glibc/Makefile @@ -5,9 +5,9 @@ include $(TOPDIR)/rules.mk include ../rules.mk # glibc does not compile with Os -TARGET_CFLAGS:= $(subst Os,O2,$(TARGET_CFLAGS)) +TARGET_CFLAGS_LIBC:= $(subst Os,O2,$(TARGET_CFLAGS)) ifneq ($(ADK_DEBUG),) -TARGET_CFLAGS+= -O2 +TARGET_CFLAGS_LIBC+= -O2 endif # ssp partially supported @@ -39,7 +39,7 @@ $(WRKBUILD)/.headers_configure: (cd $(GLIBC_BUILD_DIR_INITIAL)-$${abi/*:/}; \ ${GLIBC_ENV} \ CC="${REAL_GNU_TARGET_NAME}-gcc -m$${abi/*:/}" \ - $(WRKBUILD)/libc/configure \ + $(WRKBUILD)/configure \ --prefix=$(STAGING_TARGET_DIR)-$${abi/*:/}/usr \ --with-sysroot=$(STAGING_TARGET_DIR)-$${abi/*:/} \ --host=$${abi/:*/} \ @@ -56,8 +56,6 @@ $(WRKBUILD)/.headers: $(WRKBUILD)/.headers_configure $(MAKE) ${GLIBC_MAKEOPTS} install-headers \ ); \ done - touch $(STAGING_TARGET_DIR)/usr/include/gnu/stubs.h - touch $(STAGING_TARGET_DIR)/usr/include/gnu/stubs-{32,x32,64}.h touch $@ else $(WRKBUILD)/.headers_configure: @@ -90,7 +88,7 @@ $(WRKBUILD)/.configured: (cd $(GLIBC_BUILD_DIR_FINAL)-$${abi/*:/}; \ ${GLIBC_ENV} \ CC="${REAL_GNU_TARGET_NAME}-gcc -m$${abi/*:/}" \ - $(WRKBUILD)/libc/configure \ + $(WRKBUILD)/configure \ --prefix=/usr \ --enable-shared \ --enable-stackguard-randomization \ -- cgit v1.2.3