build system: pass EXTRA_LDFLAGS to final link stage
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 29 Sep 2007 22:52:25 +0000 (22:52 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 29 Sep 2007 22:52:25 +0000 (22:52 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20133 69ca8d6d-28ef-0310-b511-8ec308f3f277

Makefile

index 8cad651..2dced88 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -568,7 +568,7 @@ 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    $@
-      cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) $(LDFLAGS) \
+      cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) \
       -o $@ -Wl,-Map -Wl,$@.map \
       -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
       -Wl,--start-group $(busybox-all) -Wl,--end-group \