Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
both.

This patch fixes that inconsistency.

Signed-Off-By: default avatarMatthias Urlichs <smurf@debian.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent a0674e88
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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_LOADLIBES) $(HOSTLOADLIBES_$(@F))
$(host-csingle): %: %.c FORCE
	$(call if_changed_dep,host-csingle)