From 193f6746a2288caeb448a99da1068b495fdebe2e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 15 May 2010 18:13:16 +0200 Subject: [PATCH] glibc32: fix libc.so to look at lib32 dirs. --- srcpkgs/glibc32/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/glibc32/template b/srcpkgs/glibc32/template index a8105b029aa..90a46e1ac71 100644 --- a/srcpkgs/glibc32/template +++ b/srcpkgs/glibc32/template @@ -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 }