summaryrefslogtreecommitdiff
path: root/Rules.make
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-06-10 11:59:39 -0500
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-06-10 11:59:39 -0500
commit44e5599c8bad00684e25fa8d784f03f001da51bd (patch)
treeaa52261bd1baef63ecd20628a8c6f3f6c670036e /Rules.make
parent5ac88ff415dc740e070cbb9515406a4765d0ed3d (diff)
kbuild: Add $(HOST_LOADLIBES) when compiling host programs directly
When compiling a host program directly from the source without going via intermediate objects, we were missing $(HOST_LOADLIBES) on the command line. Pointed out by Keith Owens.
Diffstat (limited to 'Rules.make')
-rw-r--r--Rules.make3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rules.make b/Rules.make
index 4a65b54d6da7..e662722d8474 100644
--- a/Rules.make
+++ b/Rules.make
@@ -337,7 +337,8 @@ host-progs-multi-objs := $(foreach m,$(host-progs-multi),$($(m)-objs))
quiet_cmd_host_cc__c = HOSTCC $(RELDIR)/$@
cmd_host_cc__c = $(HOSTCC) -Wp,-MD,.$(subst /,_,$@).d \
- $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -o $@ $<
+ $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) \
+ $(HOST_LOADLIBES) -o $@ $<
$(host-progs-single): %: %.c FORCE
$(call if_changed_dep,host_cc__c)