diff options
| author | jcmdln <jcmdln@gmail.com> | 2023-10-16 16:33:26 -0400 |
|---|---|---|
| committer | jcmdln <jcmdln@gmail.com> | 2023-10-16 16:33:26 -0400 |
| commit | 21f9e7f5e55645c367ce075b60260bd524306b05 (patch) | |
| tree | 80ac6f6badc9199e6a589d3e8b9c641319b7524e | |
| parent | 6ee7b05b2717fe73a924b5b94b8e24fffb6e65ae (diff) | |
Fix Linux release pipeline which expects to bundle libLLVM*.so
| -rwxr-xr-x | build_odin.sh | 7 |
1 files 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)" |