aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c1103cf95..5117c4550 100644
--- a/Makefile
+++ b/Makefile
@@ -563,9 +563,17 @@ busybox-all := $(core-y) $(libs-y)
563# Rule to link busybox - also used during CONFIG_KALLSYMS 563# Rule to link busybox - also used during CONFIG_KALLSYMS
564# May be overridden by arch/$(ARCH)/Makefile 564# May be overridden by arch/$(ARCH)/Makefile
565quiet_cmd_busybox__ ?= LINK $@ 565quiet_cmd_busybox__ ?= LINK $@
566ifdef CONFIG_STATIC
567 cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) \
568 -static \
569 -o $@ \
570 -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
571 -Wl,--start-group $(busybox-all) -Wl,--end-group
572else
566 cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) -o $@ \ 573 cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) -o $@ \
567 -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \ 574 -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
568 -Wl,--start-group $(busybox-all) -Wl,--end-group \ 575 -Wl,--start-group $(busybox-all) -Wl,--end-group
576endif
569 577
570# Generate System.map 578# Generate System.map
571quiet_cmd_sysmap = SYSMAP 579quiet_cmd_sysmap = SYSMAP