From 35ae28b95d18fa762972083e74ca441357a6f832 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 27 Dec 2020 03:59:39 +0100 Subject: [PATCH] Use the correct fallback value for $CC --- tools/platform.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/platform.sh b/tools/platform.sh index c1fc2d2..7e52403 100755 --- a/tools/platform.sh +++ b/tools/platform.sh @@ -206,7 +206,7 @@ _platform_variable_amd64() echo "-m32 -ffreestanding$extra" ;; ULOADER_LDFLAGS) - [ -n "$CC" ] || CC="cc" + [ -n "$CC" ] || CC="${CROSS}gcc" echo "-m32 -nostdlib -static -T ${prepend}src/arch/i386/uKernel.ld $($CC -m32 -print-libgcc-file-name)" ;; esac @@ -240,7 +240,7 @@ _platform_variable_i386() echo "-ffreestanding$extra" ;; ULOADER_LDFLAGS) - [ -n "$CC" ] || CC="cc" + [ -n "$CC" ] || CC="${CROSS}gcc" echo "-nostdlib -static -T ${prepend}src/arch/i386/uKernel.ld $($CC -m32 -print-libgcc-file-name)" ;; esac