Skip to content

Commit bcf9401

Browse files
mtjhrcslp
authored andcommitted
Makefile: use absolute sysroot path in CC_LINUX
Since commit 53920d2 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 <mhrica@redhat.com>
1 parent 788cf91 commit bcf9401

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ else
9595
SYSROOT_TARGET =
9696
endif
9797
# Cross-compile on macOS with the LLVM linker (brew install lld)
98-
CC_LINUX=/usr/bin/clang -target $(ARCH)-linux-gnu -fuse-ld=lld -Wl,-strip-debug --sysroot $(SYSROOT_LINUX) -Wno-c23-extensions
98+
CC_LINUX=/usr/bin/clang -target $(ARCH)-linux-gnu -fuse-ld=lld -Wl,-strip-debug --sysroot $(shell realpath $(SYSROOT_LINUX)) -Wno-c23-extensions
9999
else
100100
# Build on Linux host
101101
CC_LINUX=$(CC)

0 commit comments

Comments
 (0)