[build] Respect value of $(CC) variable
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.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
diff --git a/src/Makefile b/src/Makefile
index bc82cc6..5cb817d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -16,7 +16,7 @@
#
# Locations of tools
#
-HOST_CC := gcc
+HOST_CC := $(CC)
RM := rm -f
TOUCH := touch
MKDIR := mkdir
@@ -26,7 +26,7 @@
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