X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2f83c80a22a2750b7812f65c2ffb99ba00a5695d..4fa8e1979c3f76117e52c0068eba3bce898eca48:/toolchain/eglibc/Makefile?ds=sidebyside diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile index 6be809745..dec7ec3c1 100644 --- a/toolchain/eglibc/Makefile +++ b/toolchain/eglibc/Makefile @@ -55,11 +55,16 @@ 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) \ CFLAGS="$(EGLIBC_CFLAGS)" \ libc_cv_slibdir="/lib" \ + use_ldconfig=no \ $(HOST_BUILD_DIR)/libc/configure \ --prefix= \ --build=$(GNU_HOST_NAME) \