diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-04-11 12:31:57 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-04-11 12:31:57 +0000 |
commit | 1d690db7202c32909c04c50e96bf85b314dbf31a (patch) | |
tree | df1da2d392366708dab35f16d099800c1ff7905a | |
parent | 3bc7d7df3d42eaec5d4cc75ebd4ea8111e219d14 (diff) | |
download | busybox-w32-1d690db7202c32909c04c50e96bf85b314dbf31a.tar.gz busybox-w32-1d690db7202c32909c04c50e96bf85b314dbf31a.tar.bz2 busybox-w32-1d690db7202c32909c04c50e96bf85b314dbf31a.zip |
- 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.IMA | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
145 | lib-all-y += $(patsubst %,libbb/%,$(sort $(lib-y))) | 145 | lib-all-y += $(patsubst %,libbb/%,$(sort $(lib-y))) |
146 | lib-y:= | 146 | lib-y:= |
147 | 147 | ||
148 | comma:=, | ||
148 | busybox: $(usage_stuff) include/applet_tables.h | 149 | busybox: $(usage_stuff) include/applet_tables.h |
149 | $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) \ | 150 | $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) \ |
151 | $(patsubst %,-Wl$(comma)%,$(LDFLAGS) $(EXTRA_LDFLAGS)) \ | ||
150 | -DGCC_COMBINE=1 \ | 152 | -DGCC_COMBINE=1 \ |
151 | --combine $(WHOLE_PROGRAM) \ | 153 | --combine $(WHOLE_PROGRAM) \ |
152 | -funit-at-a-time -Wno-error -std=gnu99 \ | 154 | -funit-at-a-time -Wno-error -std=gnu99 \ |