From 6143511001cf7a2f2e1e31d8b70ed0f7bc1fb3e6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 27 Oct 2009 01:11:35 +0000 Subject: [PATCH] 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 --- toolchain/gcc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 3b31127b4a..77243c5fa4 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -151,6 +151,10 @@ GCC_CONFIGURE_STAGE2:= \ --disable-tls \ --with-slibdir=$(TOOLCHAIN_DIR)/lib \ +ifdef CONFIG_powerpc + TARGET_CFLAGS := $(patsubst -Os,-O2,$(TARGET_CFLAGS)) +endif + GCC_MAKE:= \ export SHELL="$(BASH)"; \ $(MAKE) \ -- 2.30.2