aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f13c8b651..45d60f024 100644
--- a/Makefile
+++ b/Makefile
@@ -567,13 +567,13 @@ busybox-all := $(core-y) $(libs-y)
567# May be overridden by arch/$(ARCH)/Makefile 567# May be overridden by arch/$(ARCH)/Makefile
568quiet_cmd_busybox__ ?= LINK $@ 568quiet_cmd_busybox__ ?= LINK $@
569ifdef CONFIG_STATIC 569ifdef CONFIG_STATIC
570 cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) \ 570 cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) $(LDFLAGS) \
571 -static \ 571 -static \
572 -o $@ \ 572 -o $@ \
573 -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \ 573 -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
574 -Wl,--start-group $(busybox-all) -Wl,--end-group 574 -Wl,--start-group $(busybox-all) -Wl,--end-group
575else 575else
576 cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) -o $@ \ 576 cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) -o $@ $(LDFLAGS) \
577 -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \ 577 -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
578 -Wl,--start-group $(busybox-all) -Wl,--end-group 578 -Wl,--start-group $(busybox-all) -Wl,--end-group
579endif 579endif