summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-09-10 20:08:51 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-09-11 10:12:05 +0200
commitb477fe44ee0c4b5338b9eebca5eeca1040e45610 (patch)
treeeb8fb33d80dcebf303c63cf15e95260b241e2c10
parentfe5d1abcf47b2419f69d722deea902c0d44842e7 (diff)
downloadu-boot-imx-b477fe44ee0c4b5338b9eebca5eeca1040e45610.zip
u-boot-imx-b477fe44ee0c4b5338b9eebca5eeca1040e45610.tar.gz
u-boot-imx-b477fe44ee0c4b5338b9eebca5eeca1040e45610.tar.bz2
Makefile: default to cc for host compiler
Since the host compiler might not be gcc but e.g. clang default to cc/c++ to invoke it. cc: Masahiro Yamada <yamada.m@jp.panasonic.com> cc: Tom Rini <trini@ti.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fdda3ec..42263e4 100644
--- a/Makefile
+++ b/Makefile
@@ -197,8 +197,8 @@ 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
-HOSTCXX = g++
+HOSTCC = cc
+HOSTCXX = c++
HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
HOSTCXXFLAGS = -O2