diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |
565 | quiet_cmd_busybox__ ?= LINK $@ | 565 | quiet_cmd_busybox__ ?= LINK $@ |
566 | ifdef 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 | ||
572 | else | ||
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 |
576 | endif | ||
569 | 577 | ||
570 | # Generate System.map | 578 | # Generate System.map |
571 | quiet_cmd_sysmap = SYSMAP | 579 | quiet_cmd_sysmap = SYSMAP |