From 9f3d2e59097125e78990fd08b949a16ea8e2cba7 Mon Sep 17 00:00:00 2001 From: David Yeske Date: Thu, 2 Feb 2023 11:18:54 -0500 Subject: [PATCH] [build] Respect $CC and fix cross compile This makes the build use gcc as the default CC and also fixes the cross compile. --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 5cb817d0d..1eda0aef9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -16,6 +16,7 @@ SYMBOL_PREFIX := # # Locations of tools # +CC ?= gcc HOST_CC := $(CC) RM := rm -f TOUCH := touch @@ -26,7 +27,7 @@ PRINTF := printf PERL := perl PYTHON := python TRUE := true -CC := $(CROSS_COMPILE)$(CC) +CC := $(CROSS_COMPILE)gcc CPP := $(CC) -E AS := $(CROSS_COMPILE)as LD := $(CROSS_COMPILE)ld