From e08f355a22fbefb27cfea4e3d890eb9551bdac1b Mon Sep 17 00:00:00 2001 From: mintsuki Date: Fri, 21 Apr 2023 22:43:34 +0200 Subject: [PATCH] Update --- kernel/GNUmakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/GNUmakefile b/kernel/GNUmakefile index d948a4f..435f664 100644 --- a/kernel/GNUmakefile +++ b/kernel/GNUmakefile @@ -18,10 +18,12 @@ endef # It is highly recommended to use a custom built cross toolchain to build a kernel. # We are only using "cc" as a placeholder here. It may work by using # the host system's toolchain, but this is not guaranteed. -$(eval $(call DEFAULT_VAR,CC,cc)) +override DEFAULT_CC := cc +$(eval $(call DEFAULT_VAR,CC,$(DEFAULT_CC))) # Same thing for "ld" (the linker). -$(eval $(call DEFAULT_VAR,LD,ld)) +override DEFAULT_LD := ld +$(eval $(call DEFAULT_VAR,LD,$(DEFAULT_LD))) # User controllable C flags. override DEFAULT_CFLAGS := -g -O2 -pipe