- check if the compiler supports -fwhole-program -- 4.0 does not
This commit is contained in:
parent
a3055846a4
commit
9a1c71a0f2
@ -115,9 +115,9 @@ CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q
|
|||||||
|
|
||||||
HOSTCC = gcc
|
HOSTCC = gcc
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
WHOLE_PROGRAM:=$(call cc-option,-fwhole-program,)
|
||||||
busybox: $(usage_stuff)
|
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 \
|
-funit-at-a-time -Wno-error -std=gnu99 \
|
||||||
-o $(@)_unstripped $(lib-all-y:.o=.c) \
|
-o $(@)_unstripped $(lib-all-y:.o=.c) \
|
||||||
-Wl,--start-group -lcrypt -lm -Wl,--end-group
|
-Wl,--start-group -lcrypt -lm -Wl,--end-group
|
||||||
|
Loading…
Reference in New Issue
Block a user