slitaz-base-files view rootfs/usr/bin/ldd @ rev 322
ldd: fix shell expansion (and try to fix "dialog" package building).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 21 16:31:34 2017 +0200 (2017-01-21) |
parents | 57f892223a6f |
children | 18f5344d488c |
line source
1 #!/bin/sh
2 #
3 # Tiny ldd fake.
4 # Copyright (C) 2010-2017 SliTaz GNU/Linux.
5 #
6 echo
7 file="$@"
8 for file do
9 file="$(which "$file")"
10 ld="$(sed '/\/lib.*\/ld/!dq' "$file")"
11 echo "$file" | sed 's%^./%%;s%$%:%'
12 LD_TRACE_LOADED_OBJECTS=1 "$(realpath ${ld:-/lib/ld-linux*})" "$file"
13 echo
14 done