Detect ld.so with homebrew binaries

This commit is contained in:
q3aql 2024-06-23 22:50:17 +02:00
parent e8e25ae2fc
commit 63eb9b5c56

View File

@ -62,7 +62,7 @@ pack() {
shift
libs="$(ldd "$src" | grep -F '/' | sed -E 's|[^/]*/([^ ]+).*?|/\1|')"
ld_so="$(echo "$libs" | grep -F '/ld-linux-' || echo "$libs" | grep -F '/ld-musl-')"
ld_so="$(echo "$libs" | grep -F '/ld-linux-' || echo "$libs" | grep -F '/ld-musl-' || echo "$libs" | grep -F '/ld.so')"
ld_so="$(basename "$ld_so")"
program="$(basename "$src")"