Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion installer/utils/mac_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ function fix_dependencies {
local short_id
local install_name
install_name=$(otool -D "$target" | tail -n +2 | grep -v '^@' || : )
if [[ -n "$install_name" ]] ; then
if [[ "$install_name" == "/usr/local"/* ]] ; then
short_id=$(echo "@rpath/"$(basename "$install_name"))
change="-id \"$short_id\""
elif [[ -n "$install_name" ]] ; then
short_id=$(grealpath -e --relative-to "$prefix" "$install_name" || echo "@rpath/"$(basename "$install_name"))
change="-id \"$short_id\""
fi
Expand Down
Loading