Commit e0af0d85 authored by Matthias Urlichs's avatar Matthias Urlichs Committed by Sam Ravnborg

[PATCH] kbuild: obey HOSTLOADLIBES_programname for single-file compilation

Single-file HOSTCC calls added the libraries from $(HOSTLOADLIBES),
but not from $(HOSTLOADLIBES_programname). Multi-file HOSTCC calls do

This patch fixes that inconsistency.
Signed-Off-By: default avatarMatthias Urlichs <>
Signed-off-by: default avatarSam Ravnborg <>
parent a0674e88
......@@ -98,7 +98,8 @@ hostcxx_flags = -Wp,-MD,$(depfile) $(__hostcxx_flags)
# Create executable from a single .c file
# host-csingle -> Executable
quiet_cmd_host-csingle = HOSTCC $@
cmd_host-csingle = $(HOSTCC) $(hostc_flags) $(HOST_LOADLIBES) -o $@ $<
cmd_host-csingle = $(HOSTCC) $(hostc_flags) -o $@ $< \
$(host-csingle): %: %.c FORCE
$(call if_changed_dep,host-csingle)
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