On FreeBSD the gcc package installs a versioned binary such as
"gcc12". There is no plain "gcc" binary.
Simplify building on such systems by respecting the $(CC) variable.
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
#
# Locations of tools
#
-HOST_CC := gcc
+CC ?= gcc
+HOST_CC := $(CC)
RM := rm -f
TOUCH := touch
MKDIR := mkdir
PERL := perl
PYTHON := python
TRUE := true
-CC := $(CROSS_COMPILE)gcc
+CC := $(CROSS_COMPILE)$(CC)
CPP := $(CC) -E
AS := $(CROSS_COMPILE)as
LD := $(CROSS_COMPILE)ld