From 21f9e7f5e55645c367ce075b60260bd524306b05 Mon Sep 17 00:00:00 2001 From: jcmdln Date: Mon, 16 Oct 2023 16:33:26 -0400 Subject: Fix Linux release pipeline which expects to bundle libLLVM*.so --- build_odin.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build_odin.sh b/build_odin.sh index b7e5660f1..2a2505c97 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -70,8 +70,11 @@ FreeBSD) ;; Linux) CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)" - LDFLAGS="$LDFLAGS -ldl -Wl,-rpath=$($LLVM_CONFIG --libdir)" - LDFLAGS="$LDFLAGS $($LLVM_CONFIG --libs core native --system-libs --libfiles)" + LDFLAGS="$LDFLAGS -ldl $($LLVM_CONFIG --libs core native --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)) ./ + LDFLAGS="$LDFLAGS -Wl,-rpath=\$ORIGIN" ;; OpenBSD) CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)" -- cgit v1.2.3