diff options
-rw-r--r-- | scripts/Makefile.IMA | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/Makefile.IMA b/scripts/Makefile.IMA index 371e570ca..dec5fde83 100644 --- a/scripts/Makefile.IMA +++ b/scripts/Makefile.IMA | |||
@@ -106,10 +106,11 @@ include libbb/Kbuild | |||
106 | lib-all-y += $(patsubst %,libbb/%,$(sort $(lib-y))) | 106 | lib-all-y += $(patsubst %,libbb/%,$(sort $(lib-y))) |
107 | lib-y:= | 107 | lib-y:= |
108 | 108 | ||
109 | include Makefile.flags | ||
109 | ifndef BB_VER | 110 | ifndef BB_VER |
110 | BB_VER:="" | 111 | BB_VER:="" |
111 | endif | 112 | endif |
112 | include Makefile.flags | 113 | |
113 | CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q | 114 | CPPFLAGS+= -D"KBUILD_STR(s)=\#s" #-Q |
114 | 115 | ||
115 | HOSTCC = gcc | 116 | HOSTCC = gcc |
@@ -117,7 +118,7 @@ CC = gcc | |||
117 | 118 | ||
118 | busybox: $(usage_stuff) | 119 | busybox: $(usage_stuff) |
119 | $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_EXTRA) --combine -fwhole-program \ | 120 | $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_EXTRA) --combine -fwhole-program \ |
120 | -funit-at-a-time -Wno-error \ | 121 | -funit-at-a-time -Wno-error -std=gnu99 \ |
121 | -o $(@)_unstripped $(lib-all-y:.o=.c) \ | 122 | -o $(@)_unstripped $(lib-all-y:.o=.c) \ |
122 | -Wl,--start-group -lcrypt -lm -Wl,--end-group | 123 | -Wl,--start-group -lcrypt -lm -Wl,--end-group |
123 | cp $(@)_unstripped $@ | 124 | cp $(@)_unstripped $@ |