From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Date: Thu, 31 Jul 2014 19:01:22 +0900 Subject: [U-Boot] [PATCH v2 7/8] Makefile: default to cc for host compiler In-Reply-To: <1406750096-7281-8-git-send-email-jeroen@myspectrum.nl> References: <1406750096-7281-1-git-send-email-jeroen@myspectrum.nl> <1406750096-7281-8-git-send-email-jeroen@myspectrum.nl> Message-ID: <20140731190122.D4F3.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jeroen, On Wed, 30 Jul 2014 21:54:55 +0200 Jeroen Hofstee wrote: > Since the host compiler might not be gcc but e.g. clang > default to cc to invoke it. > > cc: Masahiro Yamada > cc: Tom Rini > Signed-off-by: Jeroen Hofstee > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 80eb239..c19f7d9 100644 > --- a/Makefile > +++ b/Makefile > @@ -204,7 +204,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ > else if [ -x /bin/bash ]; then echo /bin/bash; \ > else echo sh; fi ; fi) > > -HOSTCC = gcc > +HOSTCC = cc > HOSTCXX = g++ > HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer > HOSTCXXFLAGS = -O2 For consistency, HOSTCXX = c++ ? Kconfig has a C++ host program. (scripts/kconfig/qconf.cc) Could you please consider posting this patch to linux-kbuild ML because this may be, I think, acceptable in Linux too. On systems where both gcc and clang are installed, we can select gcc or clang by using update-alternatives (or alternative) command. Best Regards Masahiro Yamada