summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2008-04-11 12:31:57 +0000
committerBernhard Reutner-Fischer2008-04-11 12:31:57 +0000
commit1d690db7202c32909c04c50e96bf85b314dbf31a (patch)
treedf1da2d392366708dab35f16d099800c1ff7905a
parent3bc7d7df3d42eaec5d4cc75ebd4ea8111e219d14 (diff)
downloadbusybox-1d690db7202c32909c04c50e96bf85b314dbf31a.zip
busybox-1d690db7202c32909c04c50e96bf85b314dbf31a.tar.gz
- 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.
-rw-r--r--scripts/Makefile.IMA2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.IMA b/scripts/Makefile.IMA
index d246517..73360f3 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 \