From ad477710244c761ad1c21246c34e0075fee12d11 Mon Sep 17 00:00:00 2001 From: Diego Biurrun 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 89f04a04a2..20ce686fb6 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 01c4b63748..6836c11241 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)