[build] Respect $CC and fix cross compile

This makes the build use gcc as the default CC and also fixes the
cross compile.
pull/723/head
David Yeske 2023-02-02 11:18:54 -05:00
parent e29639006e
commit 9f3d2e5909
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ SYMBOL_PREFIX :=
#
# Locations of tools
#
CC ?= gcc
HOST_CC := $(CC)
RM := rm -f
TOUCH := touch
@ -26,7 +27,7 @@ PRINTF := printf
PERL := perl
PYTHON := python
TRUE := true
CC := $(CROSS_COMPILE)$(CC)
CC := $(CROSS_COMPILE)gcc
CPP := $(CC) -E
AS := $(CROSS_COMPILE)as
LD := $(CROSS_COMPILE)ld