- check if the compiler supports -fwhole-program -- 4.0 does not

This commit is contained in:
Bernhard Reutner-Fischer 2007-02-12 12:57:38 +00:00
parent a3055846a4
commit 9a1c71a0f2

View File

@ -115,9 +115,9 @@ CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q
HOSTCC = gcc
CC = gcc
WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,)
busybox: $(usage_stuff)
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_EXTRA) --combine -fwhole-program \
$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) --combine $(WHOLE_PROGRAM) \
-funit-at-a-time -Wno-error -std=gnu99 \
-o $(@)_unstripped $(lib-all-y:.o=.c) \
-Wl,--start-group -lcrypt -lm -Wl,--end-group