diff options
author | Danny Rawlings <crux@romster.me> | 2019-02-21 11:20:21 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2019-02-21 11:20:21 +0100 |
commit | d8e181624573dd9e171d13782095ca878d063301 (patch) | |
tree | 51070e81ae5920237e64a7d4bb541182390fdec2 | |
parent | 75c3b756e0f83161e206df3ddc3c99451ec5b00b (diff) | |
download | prt-utils-d8e181624573dd9e171d13782095ca878d063301.tar.gz prt-utils-d8e181624573dd9e171d13782095ca878d063301.tar.xz |
finddeps: add lib32 to the library path
-rwxr-xr-x | finddeps | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,11 +8,11 @@ version=1.9.1 pkgdb="/var/lib/pkg/db" -export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/X11/lib:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH=/lib:/usr/lib:/lib32:/usr/lib32:$LD_LIBRARY_PATH function printDep() { deps=() - files=(`awk -v p="$1" -v RS="" '$1==p' $pkgdb | awk '/(sbin|bin|lib|libexec)\//'`) + files=(`awk -v p="$1" -v RS="" '$1==p' $pkgdb | awk '/(sbin|bin|lib|lib32|libexec)\//'`) for f in ${files[*]}; do if [ -f "/$f" ]; then deps=(${deps[*]} `ldd /$f 2> /dev/null | awk '!/(linux-gate)|( dynamic)|(not found)/ {print $3}'`) |