06f81470b5
--HG-- extra : convert_revision : 078d7f9f1baf9c4fda9d3fd2c848d41a6c02d7ce
18 lines
467 B
Text
18 lines
467 B
Text
#
|
|
# This script adds /lib32 and /usr/lib32 into ld.so's cache for
|
|
# x86_64 systems.
|
|
#
|
|
case "${ACTION}" in
|
|
post)
|
|
if [ ! -d etc/ld.so.conf.d ]; then
|
|
mkdir -p etc/ld.so.conf.d
|
|
echo "include /etc/ld.so.conf.d/*.conf" >> etc/ld.so.conf
|
|
fi
|
|
if [ ! -f etc/ld.so.conf.d/glibc32.conf ]; then
|
|
echo "/lib32" >> etc/ld.so.conf.d/glibc32.conf
|
|
echo "/usr/lib32" >> etc/ld.so.conf.d/glibc32.conf
|
|
chmod 644 etc/ld.so.conf.d/glibc32.conf
|
|
sbin/ldconfig -r .
|
|
fi
|
|
;;
|
|
esac
|