From 48b4e0eac16a23713698ea4cd088cd8c857e4c33 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 12 Aug 2009 21:52:58 +0200 Subject: update gcc, kernel and uclibc Makefile - bring rb532 in shape, make it bootable --- toolchain/uClibc/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'toolchain/uClibc') diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile index e393eba5b..69b5d343a 100644 --- a/toolchain/uClibc/Makefile +++ b/toolchain/uClibc/Makefile @@ -8,6 +8,11 @@ include ../rules.mk include Makefile.inc include ${TOPDIR}/mk/buildhlp.mk +#workaround for mips and gcc 4.4, where -Os does not inline code in ld.so +ifeq ($(ARCH),mips) +TARGET_CFLAGS:=$(subst Os,O2,$(TARGET_CFLAGS)) +endif + $(WRKBUILD)/.headers: $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(WRKBUILD)/Rules.mak sed -e 's^KERNEL_HEADERS.*$$KERNEL_HEADERS=\"${TOOLCHAIN_SYSROOT}/usr/include\"' \ -- cgit v1.2.3