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
<http://www.eglibc.org/features>:

""
Building with -Os
     EGLIBC supports building the library with compiler optimizing for size -Os instead of for speed -O2.
""

SVN-Revision: 27245
This commit is contained in:
Mirko Vogt 2011-06-20 11:12:46 +00:00
parent 11dcad2834
commit 33fc3f8906

View File

@ -55,6 +55,10 @@ HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.eglibc_installed
HOST_BUILD_DIR1:=$(HOST_BUILD_DIR)-initial HOST_BUILD_DIR1:=$(HOST_BUILD_DIR)-initial
HOST_BUILD_DIR2:=$(HOST_BUILD_DIR)-final 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:= \ EGLIBC_CONFIGURE:= \
BUILD_CC="$(HOSTCC)" \ BUILD_CC="$(HOSTCC)" \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \