diff options
author | David Yeske <dyeske@gmail.com> | 2023-02-01 20:07:43 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-02-01 21:43:33 +0000 |
commit | ddc1923ab8d7b0825f427a8f05b6c28c853119d7 (patch) | |
tree | a34d5c4df790b9c7ebc996e57ee0894bcad96ec7 | |
parent | b6304f298499001a55045618e9fbf763b59b7321 (diff) | |
download | ipxe-ddc1923ab8d7b0825f427a8f05b6c28c853119d7.zip ipxe-ddc1923ab8d7b0825f427a8f05b6c28c853119d7.tar.gz ipxe-ddc1923ab8d7b0825f427a8f05b6c28c853119d7.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/Makefile | 4 |
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 |