Only pass paths to directories or config files that exist for ldconfig for

32-bit binaries.

MFC after:	3 days
This commit is contained in:
John Baldwin 2007-12-13 00:51:01 +00:00
parent a1e8ef7737
commit af14f69c40

View File

@ -49,8 +49,14 @@ ldconfig_start()
fi
fi
done
echo '32-bit compatibility ldconfig path:' ${ldconfig32_paths}
${ldconfig} -32 -m ${_ins} ${ldconfig32_paths}
_LDC=""
for i in ${ldconfig32_paths}; do
if [ -r "${i}" ]; then
_LDC="${_LDC} ${i}"
fi
done
echo '32-bit compatibility ldconfig path:' ${_LDC}
${ldconfig} -32 -m ${_ins} ${_LDC}
;;
esac