aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 17:44:24 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 17:44:24 +0000
commit9729e65706f46bd04d6e5946e20bd3c7ff4d7cc3 (patch)
tree2bd5bec2983193a9a3d84b9b849231adaf39654c /Makefile
parent5b6f776fe9f71b2266c3d3923a93ffb2d1009fdb (diff)
downloadbusybox-9729e65706f46bd04d6e5946e20bd3c7ff4d7cc3.tar.gz
- honor CONFIG_DEBUG
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)
# May be overridden by arch/$(ARCH)/Makefile
quiet_cmd_busybox__ ?= LINK $@
ifdef CONFIG_STATIC
- cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) \
+ cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) $(LDFLAGS) \
-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 $@ \
+ cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) -o $@ $(LDFLAGS) \
-Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
-Wl,--start-group $(busybox-all) -Wl,--end-group
endif