=================================================================== RCS file: /cvs/openbsd/fill_chroot/fix_ldconfig,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- openbsd/fill_chroot/fix_ldconfig 2008/09/16 23:44:51 1.8 +++ openbsd/fill_chroot/fix_ldconfig 2008/09/30 22:55:57 1.9 @@ -1,5 +1,5 @@ #!/bin/sh -# $RedRiver: fix_ldconfig,v 1.7 2008/09/16 22:14:28 andrew Exp $ +# $RedRiver: fix_ldconfig,v 1.8 2008/09/16 22:44:51 andrew Exp $ if [ X"${CHROOT}" == X"" ]; then echo No CHROOT Specified! @@ -8,7 +8,7 @@ mkdir -p ${CHROOT}/var/run -for p in /usr/lib /usr/X11R6/lib /usr/local/lib; do +for p in `ldconfig -r | awk '/search directories:/ { gsub(":", " ", $3); print $3 }'` ; do if [ -d ${CHROOT}${p} ]; then LD_PATH="${LD_PATH} ${p}" fi