Skip to content

Commit

Permalink
Fix SONAME for artifact produced in Gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
gleocadie committed Sep 13, 2024
1 parent 1d8c245 commit b7140d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-profiling-ffi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ if [[ "$fix_macos_rpath" -eq 1 ]]; then
install_name_tool -id @rpath/${shared_library_name} "$destdir/lib/${shared_library_name}"
fi

if command -v patchelf > /dev/null && [[ "$target" != "x86_64-pc-windows-msvc" ]]; then
patchelf --set-soname ${shared_library_name} "$destdir/lib/${shared_library_rename}"
fi

# objcopy might not be available on macOS
if command -v objcopy > /dev/null && [[ "$target" != "x86_64-pc-windows-msvc" ]]; then
# Remove .llvmbc section which is not useful for clients
Expand Down

0 comments on commit b7140d8

Please sign in to comment.