File: ldd

package info (click to toggle)
docker-compose 1.25.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,632 kB
  • sloc: python: 24,913; sh: 1,023; makefile: 13
file content (13 lines) | stat: -rwxr-xr-x 528 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# From http://wiki.musl-libc.org/wiki/FAQ#Q:_where_is_ldd_.3F
#
#     Musl's dynlinker comes with ldd functionality built in. just create a
#     symlink from ld-musl-$ARCH.so to /bin/ldd. If the dynlinker was started
#     as "ldd", it will detect that and print the appropriate DSO information.
#
# Instead, this string replaced "ldd" with the package so that pyinstaller
# can find the actual lib.
exec /usr/bin/ldd "$@" | \
    sed -r 's/([^[:space:]]+) => ldd/\1 => \/lib\/\1/g' | \
    sed -r 's/ldd \(.*\)//g'