Messages in this thread Patch in this message | | | From | "Matthias Urlichs" <> | Date | Fri, 18 Feb 2005 10:23:41 +0100 | Subject | [2.6 patch] 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: Matthias Urlichs <smurf@debian.org>
diff -Nru a/scripts/Makefile.host b/scripts/Makefile.host --- a/scripts/Makefile.host 2005-02-18 10:19:29 +01:00 +++ b/scripts/Makefile.host 2005-02-18 10:19:29 +01:00 @@ -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) -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de[unhandled content-type:application/pgp-signature] | |