From e1a0daf992dc5c04ac3bf579bded747a6caff449 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Thu, 2 Feb 2012 14:18:32 +0100
Subject: [PATCH] tools: use HOSTCC when compiling outside of the kernel

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Acked-by: Federico Vaga <federico.vaga@gmail.com>
---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/Makefile b/tools/Makefile
index a0a2dc6..2de7d5b 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -12,5 +12,5 @@ clean:
 	rm -f $(hostprogs-y) *~ *.o
 
 %: %.c
-	$(CC) $(HOST_EXTRACFLAGS) -Wall $^ -o $@
+	$(HOSTCC) $(HOST_EXTRACFLAGS) -Wall $^ -o $@
 
-- 
GitLab