- check if the compiler supports -fwhole-program -- 4.0 does not
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 12 Feb 2007 12:57:38 +0000 (12:57 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 12 Feb 2007 12:57:38 +0000 (12:57 -0000)
scripts/Makefile.IMA

index dec5fde838bf6b42e6cad8d47a648b4bc287b18d..23f89578b3b78a4aa163662cd555263d253f88bb 100644 (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