diff options
author | Denis Vlasenko | 2006-10-10 21:00:47 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-10 21:00:47 +0000 |
commit | cba9ef5523f09ecc3240f9f6efcdd0440c652c91 (patch) | |
tree | 79a2f859df1f6eef15defd02bd2f453735ed327e /Makefile | |
parent | 1ac42bf66e2c181b886e89f9222cae65676c9e8a (diff) | |
download | busybox-cba9ef5523f09ecc3240f9f6efcdd0440c652c91.zip busybox-cba9ef5523f09ecc3240f9f6efcdd0440c652c91.tar.gz |
fixes from Vladimir Dronnikov <dronnikov@gmail.ru>
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) # Rule to link busybox - also used during CONFIG_KALLSYMS # May be overridden by arch/$(ARCH)/Makefile quiet_cmd_busybox__ ?= LINK $@ +ifdef CONFIG_STATIC + cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) \ + -static \ + -o $@ \ + -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \ + -Wl,--start-group $(busybox-all) -Wl,--end-group +else cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) -o $@ \ -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \ - -Wl,--start-group $(busybox-all) -Wl,--end-group \ + -Wl,--start-group $(busybox-all) -Wl,--end-group +endif # Generate System.map quiet_cmd_sysmap = SYSMAP |