Commit 44e5599c authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Add $(HOST_LOADLIBES) when compiling host programs directly

When compiling a host program directly from the source without
going via intermediate objects, we were missing $(HOST_LOADLIBES) on
the command line.

Pointed out by Keith Owens.
parent 5ac88ff4
......@@ -337,7 +337,8 @@ host-progs-multi-objs := $(foreach m,$(host-progs-multi),$($(m)-objs))
quiet_cmd_host_cc__c = HOSTCC $(RELDIR)/$@
cmd_host_cc__c = $(HOSTCC) -Wp,-MD,.$(subst /,_,$@).d \
$(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -o $@ $<
$(HOSTCFLAGS) $(HOST_EXTRACFLAGS) \
$(HOST_LOADLIBES) -o $@ $<
$(host-progs-single): %: %.c FORCE
$(call if_changed_dep,host_cc__c)
......
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