[PATCH] Use HOSTCC for build utilities
Baruch Even
baruch at ev-en.org
Sat May 19 20:00:05 EDT 2012
Subject: [PATCH] Use HOSTCC for build utilities
bin-to-hex is used during the build and needs to be compiled with the host
compiler to be able to run during the build.
Signed-off-by: Baruch Even <baruch at ev-en.org>
---
util/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/Makefile b/util/Makefile
index 948ee63..82c7407 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -4,8 +4,8 @@ $(BIN_TO_HEX): $(srcdir)/util/bin-to-hex.c
@$(MKDIR) -p $(@D)
$(LINK.o) $(CFLAGS) -o $@ $^
-$(BIN_TO_HEX): CC=$(BUILD_CC)
-$(BIN_TO_HEX): CFLAGS=$(BUILD_CFLAGS)
+$(BIN_TO_HEX): CC=$(HOSTCC)
+$(BIN_TO_HEX): CFLAGS=$(HOST_CFLAGS)
$(BIN_TO_HEX): LDFLAGS=
dist += util/Makefile util/bin-to-hex.c
--
1.7.10
More information about the kexec
mailing list