build: pass down CC from make env

The default toolchain set up doesn't export CC/etc... into the children's
environment which means it'll be unset.  Pass it down from make's env by
default to fix that.

BUG=chromium:665649
TEST=`make` on ubuntu just works

Change-Id: Ic0bfcb5db6ade3dd598e31df7f43534eb8f3ae09
diff --git a/Makefile b/Makefile
index 42d9a05..2a6351c 100644
--- a/Makefile
+++ b/Makefile
@@ -62,10 +62,9 @@
 
 # Only regenerate libsyscalls.gen.c if the Makefile or header changes.
 # NOTE! This will not detect if the file is not appropriate for the target.
-# TODO(jorgelo): fix generation when 'CC' env variable is not set.
 libsyscalls.gen.c: $(SRC)/Makefile $(SRC)/libsyscalls.h
 	@printf "Generating target-arch specific $@... "
-	$(QUIET)$(SRC)/gen_syscalls.sh $@
+	$(QUIET)$(SRC)/gen_syscalls.sh "$(CC)" "$@"
 	@printf "done.\n"
 clean: CLEAN(libsyscalls.gen.c)
 
@@ -77,10 +76,9 @@
 
 # Only regenerate libconstants.gen.c if the Makefile or header changes.
 # NOTE! This will not detect if the file is not appropriate for the target.
-# TODO(jorgelo): fix generation when 'CC' env variable is not set.
 libconstants.gen.c: $(SRC)/Makefile $(SRC)/libconstants.h
 	@printf "Generating target-arch specific $@... "
-	$(QUIET)$(SRC)/gen_constants.sh $@
+	$(QUIET)$(SRC)/gen_constants.sh "$(CC)" "$@"
 	@printf "done.\n"
 clean: CLEAN(libconstants.gen.c)