Commit db1c6c82 authored by Sam Ravnborg's avatar Sam Ravnborg

kbuild: ld_flags used consistently in Makefile.build

parent 1b0c3109
...@@ -211,7 +211,7 @@ ifdef O_TARGET ...@@ -211,7 +211,7 @@ ifdef O_TARGET
quiet_cmd_link_o_target = LD $@ quiet_cmd_link_o_target = LD $@
# If the list of objects to link is empty, just create an empty O_TARGET # If the list of objects to link is empty, just create an empty O_TARGET
cmd_link_o_target = $(if $(strip $(obj-y)),\ cmd_link_o_target = $(if $(strip $(obj-y)),\
$(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) -r -o $@ $(filter $(obj-y), $^),\ $(LD) $(ld_flags) -r -o $@ $(filter $(obj-y), $^),\
rm -f $@; $(AR) rcs $@) rm -f $@; $(AR) rcs $@)
$(O_TARGET): $(obj-y) FORCE $(O_TARGET): $(obj-y) FORCE
...@@ -273,7 +273,7 @@ targets += $(multi-used-y) $(multi-used-m) ...@@ -273,7 +273,7 @@ targets += $(multi-used-y) $(multi-used-m)
ifndef CONFIG_MODVERSIONING ifndef CONFIG_MODVERSIONING
quiet_cmd_link_module = LD [M] $@ quiet_cmd_link_module = LD [M] $@
cmd_link_module = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_MODULE) -o $@ $< init/vermagic.o cmd_link_module = $(LD) $(ld_flags) $(LDFLAGS_MODULE) -o $@ $< init/vermagic.o
# Don't rebuilt vermagic.o unless we actually are in the init/ dir # Don't rebuilt vermagic.o unless we actually are in the init/ dir
ifneq ($(obj),init) ifneq ($(obj),init)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment