slitaz-base-files view rootfs/usr/bin/ldd @ rev 295
ldd: libraries support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 14 12:33:17 2016 +0100 (2016-01-14) |
parents | 967cede25fb4 |
children | c18bf4a1a64c |
line source
1 #!/bin/sh
2 #
3 # Tiny ldd fake.
4 # Copyright (C) 2010-2016 SliTaz GNU/Linux.
5 #
7 echo
8 file="$@"
9 for file do
10 case "$file" in
11 */*) ;;
12 *) [ -f "./$file" ] && file="./$file"
13 esac
14 which "$file" | sed 's%^./%%;s%$%:%'
15 LD_TRACE_LOADED_OBJECTS=1 /lib/ld-linux* "$file"
16 echo
17 done