From ad477710244c761ad1c21246c34e0075fee12d11 Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Mon, 2 Dec 2013 03:51:48 +0100
Subject: [PATCH] build: Add shorthand for HOSTCC compile macro

---
 Makefile   | 1 +
 common.mak | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 89f04a04a26..20ce686fb67 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,7 @@ endef
 
 COMPILE_C = $(call COMPILE,CC)
 COMPILE_S = $(call COMPILE,AS)
+COMPILE_HOSTC = $(call COMPILE,HOSTCC)
 
 %.o: %.c
 	$(COMPILE_C)
diff --git a/common.mak b/common.mak
index 01c4b637489..6836c11241d 100644
--- a/common.mak
+++ b/common.mak
@@ -39,7 +39,7 @@ checkheaders: $(HOBJS)
 alltools: $(TOOLS)
 
 $(HOSTOBJS): %.o: %.c
-	$(call COMPILE,HOSTCC)
+	$(COMPILE_HOSTC)
 
 $(HOSTPROGS): %$(HOSTEXESUF): %.o
 	$(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTLIBS)
-- 
GitLab