- fix detection of whole-program
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 11 Apr 2008 12:42:23 +0000 (12:42 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 11 Apr 2008 12:42:23 +0000 (12:42 -0000)
  It helps if we first pull in the function we use for testing flags ;)

scripts/Makefile.IMA

index 73360f3..27163ab 100644 (file)
@@ -26,7 +26,6 @@ OBJDUMP         = $(CROSS_COMPILE)objdump
 
 CFLAGS := $(CFLAGS)
 CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q
-WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,)
 
 include .config
 # We need some generic definitions
@@ -41,6 +40,7 @@ ifndef BB_VER
 BB_VER:=""
 endif
 
+WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,)
 
 # pull in the config stuff
 lib-all-y := applets/applets.o