From: David Yeske Date: Thu, 2 Feb 2023 16:30:29 +0000 (+0000) Subject: [build] Respect value of $(CC) variable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fcc;p=thirdparty%2Fipxe.git [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. Modified-by: Michael Brown Signed-off-by: Michael Brown --- diff --git a/src/Makefile b/src/Makefile index bc82cc6fe..b37e2411b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -16,7 +16,8 @@ SYMBOL_PREFIX := # # Locations of tools # -HOST_CC := gcc +CC ?= gcc +HOST_CC := $(CC) RM := rm -f TOUCH := touch MKDIR := mkdir @@ -26,7 +27,7 @@ PRINTF := printf 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