- 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:
parent
3bc7d7df3d
commit
1d690db720
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user