1 Submitted By: Anderson Lizardo <andersonlizardo(at)yahoo(dot)com(dot)br>
3 Initial Package Version: 5.8.8
4 Origin: based on current LFS-BOOK patch (perl-5.8.0-libc-2.patch)
5 Description: this patch adapts some hard-wired paths to the C library.
6 It uses the $prefix variable to locate the correct libc.
8 diff -Naur perl-5.8.8.orig/hints/linux.sh perl-5.8.8/hints/linux.sh
9 --- perl-5.8.8.orig/hints/linux.sh 2005-11-18 01:18:45.000000000 +0000
10 +++ perl-5.8.8/hints/linux.sh 2006-02-12 12:20:32.000000000 +0000
12 # We don't use __GLIBC__ and __GLIBC_MINOR__ because they
13 # are insufficiently precise to distinguish things like
14 # libc-2.0.6 and libc-2.0.7.
15 -if test -L /lib/libc.so.6; then
16 - libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
18 +if test -L ${prefix}/lib/libc.so.6; then
19 + libc=`ls -l ${prefix}/lib/libc.so.6 | awk '{print $NF}'`
20 + libc=${prefix}/lib/$libc
23 # Configure may fail to find lstat() since it's a static/inline
31 +glibpth="${prefix}/lib"
32 +usrinc="${prefix}/include"