build system: pass EXTRA_LDFLAGS to final link stage
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 29 Sep 2007 22:52:25 +0000 (22:52 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 29 Sep 2007 22:52:25 +0000 (22:52 -0000)
Makefile

index 8cad651b244a4e9a5da97c4538faa9cbc76a829a..2dced88e443b97bd734dca27c9274011d91b52fd 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 \