Whether we replace '-Os' with '-O2' or not, we still need to pass the rest of 
the flags.

Signed-off-by: Philip Prindeville <[email protected]>
Index: toolchain/eglibc/Makefile
===================================================================
--- toolchain/eglibc/Makefile   (revision 27245)
+++ toolchain/eglibc/Makefile   (working copy)
@@ -55,9 +55,10 @@
 HOST_BUILD_DIR1:=$(HOST_BUILD_DIR)-initial
 HOST_BUILD_DIR2:=$(HOST_BUILD_DIR)-final
 
+EGLIBC_CFLAGS:=$(TARGET_CFLAGS)
 # 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_CFLAGS:=$(subst -Os,-O2,$(EGLIBC_CFLAGS))
 
 EGLIBC_CONFIGURE:= \
        BUILD_CC="$(HOSTCC)" \
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to