pidfile.c: not used anymore
[oweals/busybox.git] / scripts / Makefile.IMA
index 371e570ca8f2df93be5775dcb89fd879927ce578..a923731512f5e4404152275eb28ed73d0f2582e4 100644 (file)
@@ -99,6 +99,9 @@ lib-y:=
 include editors/Kbuild
 lib-all-y += $(patsubst %,editors/%,$(sort $(lib-y)))
 lib-y:=
+include selinux/Kbuild
+lib-all-y += $(patsubst %,selinux/%,$(sort $(lib-y)))
+lib-y:=
 include scripts/Kbuild
 lib-all-y += $(patsubst %,scripts/%,$(sort $(lib-y)))
 lib-y:=
@@ -106,18 +109,19 @@ include libbb/Kbuild
 lib-all-y += $(patsubst %,libbb/%,$(sort $(lib-y)))
 lib-y:=
 
+include Makefile.flags
 ifndef BB_VER
 BB_VER:=""
 endif
-include Makefile.flags
+
 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 \
-               -funit-at-a-time -Wno-error  \
+       $(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
        cp $(@)_unstripped $@