aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Yeske <dyeske@gmail.com>2023-02-01 20:07:43 +0000
committerMichael Brown <mcb30@ipxe.org>2023-02-01 21:43:33 +0000
commitddc1923ab8d7b0825f427a8f05b6c28c853119d7 (patch)
treea34d5c4df790b9c7ebc996e57ee0894bcad96ec7
parentb6304f298499001a55045618e9fbf763b59b7321 (diff)
downloadipxe-cc.zip
ipxe-cc.tar.gz
ipxe-cc.tar.bz2
[build] Respect value of $(CC) variablecc
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>
-rw-r--r--src/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index bc82cc6..5cb817d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -16,7 +16,7 @@ SYMBOL_PREFIX :=
#
# Locations of tools
#
-HOST_CC := gcc
+HOST_CC := $(CC)
RM := rm -f
TOUCH := touch
MKDIR := mkdir
@@ -26,7 +26,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