mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 21:27:31 +02:00
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18177 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4497cf8437
commit
94780e82b8
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user