diff options
author | Matthias Urlichs <smurf@smurf.noris.de> | 2005-02-18 04:23:41 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.(none)> | 2005-07-13 18:11:14 -0400 |
commit | e0af0d85f55ea800a2e38bf782d68b83e9942611 (patch) | |
tree | e8c94d9e722e1387ea5c01c3833046870f8141cf /scripts | |
parent | a0674e88d9c150e016a69e78e735f48772314c53 (diff) |
[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: Matthias Urlichs <smurf@debian.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.host | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 2821a2b83bbb..2d519704b8fd 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host | |||
@@ -98,7 +98,8 @@ hostcxx_flags = -Wp,-MD,$(depfile) $(__hostcxx_flags) | |||
98 | # Create executable from a single .c file | 98 | # Create executable from a single .c file |
99 | # host-csingle -> Executable | 99 | # host-csingle -> Executable |
100 | quiet_cmd_host-csingle = HOSTCC $@ | 100 | quiet_cmd_host-csingle = HOSTCC $@ |
101 | cmd_host-csingle = $(HOSTCC) $(hostc_flags) $(HOST_LOADLIBES) -o $@ $< | 101 | cmd_host-csingle = $(HOSTCC) $(hostc_flags) -o $@ $< \ |
102 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) | ||
102 | $(host-csingle): %: %.c FORCE | 103 | $(host-csingle): %: %.c FORCE |
103 | $(call if_changed_dep,host-csingle) | 104 | $(call if_changed_dep,host-csingle) |
104 | 105 | ||