Detect ld.so with homebrew binaries
This commit is contained in:
parent
e8e25ae2fc
commit
63eb9b5c56
|
@ -62,7 +62,7 @@ pack() {
|
||||||
shift
|
shift
|
||||||
|
|
||||||
libs="$(ldd "$src" | grep -F '/' | sed -E 's|[^/]*/([^ ]+).*?|/\1|')"
|
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")"
|
ld_so="$(basename "$ld_so")"
|
||||||
program="$(basename "$src")"
|
program="$(basename "$src")"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user