mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
985853297c
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
13 lines
527 B
Bash
Executable File
13 lines
527 B
Bash
Executable File
#!/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' |