- correct flag for gcc-3.x

This commit is contained in:
Bernhard Reutner-Fischer 2006-01-24 18:25:51 +00:00
parent 9ed6ac2bea
commit f64ff682a3

View File

@ -139,7 +139,7 @@ OPTIMIZATION:=$(call check_gcc,-Os,-O2)
ifeq ($(CONFIG_BUILD_AT_ONCE),y)
# gcc 2.95 exits with 0 for "unrecognized option"
ifeq ($(strip $(shell [ $(CC_MAJOR) -ge 3 ] ; echo $$?)),0)
OPTIMIZATION+=$(call check_gcc,-combine,)
OPTIMIZATION+=$(call check_gcc,--combine,)
endif
OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,)
PROG_CFLAGS+=$(call check_gcc,-fwhole-program,)