mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
- 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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue