Skip to contentSkip to conversation

obey HOSTLOADLIBES_programname for single-file compilation

PATCH New Matthias Urlichs 1 participant 1 message Feb 18, 2005 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

scripts/Makefile.host +2 -1
diff -Nru a/scripts/Makefile.host b/scripts/Makefile.host
@@ -98,7 +98,8 @@
 # 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)
 
Signature · 1 line
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  [email protected]