slitaz-base-files rev 319
ldd: /lib64 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 10 12:37:16 2017 +0100 (2017-01-10) |
parents | 8253327a882a |
children | 57f892223a6f |
files | rootfs/usr/bin/ldd |
line diff
1.1 --- a/rootfs/usr/bin/ldd Tue Jan 10 12:30:48 2017 +0200 1.2 +++ b/rootfs/usr/bin/ldd Tue Jan 10 12:37:16 2017 +0100 1.3 @@ -1,14 +1,14 @@ 1.4 #!/bin/sh 1.5 # 1.6 # Tiny ldd fake. 1.7 -# Copyright (C) 2010-2016 SliTaz GNU/Linux. 1.8 +# Copyright (C) 2010-2017 SliTaz GNU/Linux. 1.9 # 1.10 - 1.11 echo 1.12 file="$@" 1.13 for file do 1.14 file="$(which "$file")" 1.15 + ld="$(sed '/\/lib.*\/ld/!dq' "$file")" 1.16 echo "$file" | sed 's%^./%%;s%$%:%' 1.17 - LD_TRACE_LOADED_OBJECTS=1 /lib/ld-linux* "$file" 1.18 + LD_TRACE_LOADED_OBJECTS=1 "$ld" "$file" 1.19 echo 1.20 done