Update packelf.sh (#1)

Add support for binaries built using musl
This commit is contained in:
Omar 2024-06-16 08:41:12 +00:00 committed by GitHub
parent f0589d6402
commit 14e752ae49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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-')"
ld_so="$(echo "$libs" | grep -F '/ld-linux-' || echo "$libs" | grep -F '/ld-musl-')"
ld_so="$(basename "$ld_so")"
program="$(basename "$src")"