bc: convert to "G trick" - this returns bc to zero bss increase
[oweals/busybox.git] / scripts / Makefile.build
index 5685b5bcc5cc3ae1f0f78900770b8b1904b55757..5eac45f91f86852f322af06cd52c214f39925d99 100644 (file)
@@ -255,8 +255,9 @@ $(sort $(subdir-obj-y)): $(subdir-ym) ;
 ifdef builtin-target
 quiet_cmd_link_o_target = LD      $@
 # If the list of objects to link is empty, just create an empty built-in.o
+# -nostdlib is added to make "make LD=gcc ..." work (some people use that)
 cmd_link_o_target = $(if $(strip $(obj-y)),\
-               $(LD) $(ld_flags) -r -o $@ $(filter $(obj-y), $^),\
+               $(LD) -nostdlib $(ld_flags) -r -o $@ $(filter $(obj-y), $^),\
                rm -f $@; $(AR) rcs $@)
 
 $(builtin-target): $(obj-y) FORCE