Commit 5033068a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

build: Don't forget to use LDFLAGS when ld invoked

It's not a problem now but in future we might need
some special flags to be passed here.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1943d08c
...@@ -132,7 +132,7 @@ $(1)-all-objs += $(all-objs) ...@@ -132,7 +132,7 @@ $(1)-all-objs += $(all-objs)
$$(obj)/$(1).built-in.o: $$($(1)-all-objs) $$($(1)-libs-e) $(libs-e) $$(obj)/$(1).built-in.o: $$($(1)-all-objs) $$($(1)-libs-e) $(libs-e)
$$(E) " LINK " $$@ $$(E) " LINK " $$@
$$(Q) $$(LD) -r -o $$@ $$^ $$(Q) $$(LD) $$(LDFLAGS) -r -o $$@ $$^
_all += $$(obj)/$(1).built-in.o _all += $$(obj)/$(1).built-in.o
endef endef
...@@ -152,7 +152,7 @@ ifeq ($(targets),) ...@@ -152,7 +152,7 @@ ifeq ($(targets),)
ifneq ($(all-objs),) ifneq ($(all-objs),)
$(obj)/built-in.o: $(all-objs) $(libs-e) $(obj)/built-in.o: $(all-objs) $(libs-e)
$(E) " LINK " $@ $(E) " LINK " $@
$(Q) $(LD) -r -o $@ $^ $(Q) $(LD) $(LDFLAGS) -r -o $@ $^
_all += $(obj)/built-in.o _all += $(obj)/built-in.o
endif endif
......
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