From 1dbafbab632eb2888c1cd2d60e0cefb9bbbd7bae Mon Sep 17 00:00:00 2001 From: Harold Brenes Date: Sat, 15 Aug 2026 17:13:52 -0400 Subject: [PATCH] Explicitly specify all required LLVM components on linux build. This fixes missing symbols errors when building with LLVM with separate components. --- build_odin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_odin.sh b/build_odin.sh index 9eab985e9..ebf2804c6 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -125,7 +125,7 @@ NetBSD) ;; Linux) CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)" - LDFLAGS="$LDFLAGS -lstdc++ -ldl $($LLVM_CONFIG --libs core native --system-libs --libfiles)" + LDFLAGS="$LDFLAGS -lstdc++ -ldl $($LLVM_CONFIG --libs core native passes arm aarch64 x86 webassembly riscv --system-libs --libfiles)" # Copy libLLVM*.so into current directory for linking # NOTE: This is needed by the Linux release pipeline! # cp $(readlink -f $($LLVM_CONFIG --libfiles)) ./