gcc: compile libgcc and libstdc++ with -O2 instead of -Os on power pc to avoid generating references to gpr save/restore functions which cannot yet be resolved at this point

SVN-Revision: 18177
This commit is contained in:
Felix Fietkau 2009-10-27 01:11:35 +00:00
parent bc59e3da51
commit 46cc3f164d

View file

@ -151,6 +151,10 @@ GCC_CONFIGURE_STAGE2:= \
--disable-tls \ --disable-tls \
--with-slibdir=$(TOOLCHAIN_DIR)/lib \ --with-slibdir=$(TOOLCHAIN_DIR)/lib \
ifdef CONFIG_powerpc
TARGET_CFLAGS := $(patsubst -Os,-O2,$(TARGET_CFLAGS))
endif
GCC_MAKE:= \ GCC_MAKE:= \
export SHELL="$(BASH)"; \ export SHELL="$(BASH)"; \
$(MAKE) \ $(MAKE) \