From 5cbdeea980af9ccf4af33a28e05e62502be9c4f0 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 8 Apr 2023 14:50:05 +0800 Subject: [PATCH] Makefile: use implicit CC variable instead of hardcoding gcc Reference: https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html Signed-off-by: Nick Cao --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c05cc35..7e96394 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ $(INITRD_C_BUNDLE): $(INITRD_BINARY) endif $(KRUNFW_BINARY_$(OS)): $(KERNEL_C_BUNDLE) $(QBOOT_C_BUNDLE) $(INITRD_C_BUNDLE) - gcc -fPIC -DABI_VERSION=$(ABI_VERSION) -shared $(SONAME_$(OS)) -o $@ $(KERNEL_C_BUNDLE) $(QBOOT_C_BUNDLE) $(INITRD_C_BUNDLE) + $(CC) -fPIC -DABI_VERSION=$(ABI_VERSION) -shared $(SONAME_$(OS)) -o $@ $(KERNEL_C_BUNDLE) $(QBOOT_C_BUNDLE) $(INITRD_C_BUNDLE) ifeq ($(OS),Linux) strip $(KRUNFW_BINARY_$(OS)) endif