From: Bernhard Reutner-Fischer Date: Fri, 11 Apr 2008 12:31:57 +0000 (-0000) Subject: - also use the incoming LDFLAGS and EXTRA_LDFLAGS X-Git-Tag: 1_11_0~352 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1d690db7202c32909c04c50e96bf85b314dbf31a;p=oweals%2Fbusybox.git - 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. --- diff --git a/scripts/Makefile.IMA b/scripts/Makefile.IMA index d24651787..73360f3e1 100644 --- a/scripts/Makefile.IMA +++ b/scripts/Makefile.IMA @@ -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 \