glibc32: fix libc.so to look at lib32 dirs.

This commit is contained in:
Juan RP 2010-05-15 18:13:16 +02:00
parent ab3193c208
commit 193f6746a2

View file

@ -47,7 +47,8 @@ do_install()
cp -a ${wrksrc}/usr/lib/gconv/* ${DESTDIR}/usr/lib32/gconv
install -d ${DESTDIR}/lib
cd ${DESTDIR}/lib && ln -sf ../lib32/ld-linux.so.2 .
install -m644 ${wrksrc}/usr/lib/*.{a,o,so} ${DESTDIR}/usr/lib32
install -m644 ${wrksrc}/usr/lib/*.{a,o} ${DESTDIR}/usr/lib32
install -m755 ${wrksrc}/usr/lib/*.so ${DESTDIR}/usr/lib32
# Add /lib32 and /usr/lib32 into ld.so(8) cache.
install -d ${DESTDIR}/etc/ld.so.conf.d
@ -56,4 +57,7 @@ do_install()
chmod 644 ${DESTDIR}/etc/ld.so.conf.d/glibc32.conf \
&& ldconfig || return 1
# Fix libc.so to find stuff in lib32 dirs.
sed -i -e "s|/lib/|/lib32/|g" ${DESTDIR}/usr/lib32/libc.so || return 1
}