From 762080e9afd6b209ed853e56c5440bdcd0758cad Mon Sep 17 00:00:00 2001 From: Matej Hrica Date: Wed, 18 Mar 2026 16:01:36 +0100 Subject: [PATCH] Makefile: use absolute sysroot path in CC_LINUX Since commit 53920d2d moved init/init.c compilation into build.rs, CC_LINUX needs an absolute sysroot path because the compiler may run under a different working directory. Signed-off-by: Matej Hrica --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c97a1b705..406439b2c 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ else SYSROOT_TARGET = endif # Cross-compile on macOS with the LLVM linker (brew install lld) - CC_LINUX=/usr/bin/clang -target $(ARCH)-linux-gnu -fuse-ld=lld -Wl,-strip-debug --sysroot $(SYSROOT_LINUX) -Wno-c23-extensions + CC_LINUX=/usr/bin/clang -target $(ARCH)-linux-gnu -fuse-ld=lld -Wl,-strip-debug --sysroot $(shell realpath $(SYSROOT_LINUX)) -Wno-c23-extensions else # Build on Linux host CC_LINUX=$(CC)