X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=toolchain%2Fgcc%2FMakefile;fp=toolchain%2Fgcc%2FMakefile;h=77243c5fa4bd2c45853a5bee0278b2a5062ed19b;hp=3b31127b4ae6db6815fc573bc2298de964ba76c1;hb=94780e82b867e9ff2400eb9c7b7d7f82bad693f2;hpb=4497cf84372c6d9410170cc1fb040e7a0adc277e diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 3b31127b4..77243c5fa 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) \