From ddc1923ab8d7b0825f427a8f05b6c28c853119d7 Mon Sep 17 00:00:00 2001 From: David Yeske Date: Wed, 1 Feb 2023 20:07:43 +0000 Subject: [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 --- src/Makefile | 4 ++-- 1 file 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 -- cgit v1.1