- also use the incoming LDFLAGS and EXTRA_LDFLAGS

This isn't perfect since it will barf on linker flags with two args like -Wl,z,now et al.
This commit is contained in:
Bernhard Reutner-Fischer 2008-04-11 12:31:57 +00:00
parent 3bc7d7df3d
commit 1d690db720

View File

@ -145,8 +145,10 @@ include libbb/Kbuild
lib-all-y += $(patsubst %,libbb/%,$(sort $(lib-y)))
lib-y:=
comma:=,
busybox: $(usage_stuff) include/applet_tables.h
$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) \
$(patsubst %,-Wl$(comma)%,$(LDFLAGS) $(EXTRA_LDFLAGS)) \
-DGCC_COMBINE=1 \
--combine $(WHOLE_PROGRAM) \
-funit-at-a-time -Wno-error -std=gnu99 \