From: Mirko Vogt Date: Mon, 20 Jun 2011 11:12:46 +0000 (+0000) Subject: Revert "[toolchain/eglibc} eglibc in fact can be built with -Os" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b2da5b53b478220129836b4e9b8652751b9ed962;p=openwrt%2Fsvn-archive%2Farchive.git Revert "[toolchain/eglibc} eglibc in fact can be built with -Os" Compiling with -Os results in: "error: #error "glibc cannot be compiled without optimization" Still, building with -Os is listed as feature in : "" Building with -Os EGLIBC supports building the library with compiler optimizing for size -Os instead of for speed -O2. "" SVN-Revision: 27245 --- diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile index 1e1031deb8..dec7ec3c11 100644 --- a/toolchain/eglibc/Makefile +++ b/toolchain/eglibc/Makefile @@ -55,6 +55,10 @@ HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.eglibc_installed HOST_BUILD_DIR1:=$(HOST_BUILD_DIR)-initial HOST_BUILD_DIR2:=$(HOST_BUILD_DIR)-final +# XXX: {e,}glibc does not build w/ -Os +# http://sourceware.org/bugzilla/show_bug.cgi?id=5203 +EGLIBC_CFLAGS:=$(subst -Os,-O2,$(TARGET_CFLAGS)) + EGLIBC_CONFIGURE:= \ BUILD_CC="$(HOSTCC)" \ $(TARGET_CONFIGURE_OPTS) \