From: Roger Pau Monné Date: Thu, 28 Apr 2016 13:11:19 +0000 (+0200) Subject: build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1208 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1d5b507e69d67d2a6eee54286e44b5b7cc525e6c;p=xen.git build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling Signed-off-by: Roger Pau Monné Acked-by: Jan Beulich Release-acked-by: Wei Liu --- diff --git a/Config.mk b/Config.mk index 9b097c9831..7b2fe7f579 100644 --- a/Config.mk +++ b/Config.mk @@ -45,6 +45,12 @@ DESTDIR ?= / # Allow phony attribute to be listed as dependency rather than fake target .PHONY: .phony +# If we are not cross-compiling, default HOSTC{C/XX} to C{C/XX} +ifeq ($(XEN_TARGET_ARCH), $(XEN_COMPILE_ARCH)) +HOSTCC ?= $(CC) +HOSTCXX ?= $(CXX) +endif + # Use Clang/LLVM instead of GCC? clang ?= n ifeq ($(clang),n)