From 9a1c71a0f22e7113b87291f874281fb44a455aab Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 12 Feb 2007 12:57:38 +0000 Subject: - check if the compiler supports -fwhole-program -- 4.0 does not --- scripts/Makefile.IMA | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.IMA b/scripts/Makefile.IMA index dec5fde83..23f89578b 100644 --- a/scripts/Makefile.IMA +++ b/scripts/Makefile.IMA @@ -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 -- cgit v1.2.3