Submitted By: Anderson Lizardo Date: 2006-02-15 Initial Package Version: 5.8.8 Rediffed against 5.10.0 by Joe Ciccone on 2008-08-30 Origin: based on current LFS-BOOK patch (perl-5.8.0-libc-2.patch) Description: this patch adapts some hard-wired paths to the C library. It uses the $prefix variable to locate the correct libc. diff -Naur perl-5.10.0.orig/hints/linux.sh perl-5.10.0/hints/linux.sh --- perl-5.10.0.orig/hints/linux.sh 2007-12-18 05:47:07.000000000 -0500 +++ perl-5.10.0/hints/linux.sh 2008-08-31 11:57:41.000000000 -0400 @@ -60,9 +60,9 @@ # We don't use __GLIBC__ and __GLIBC_MINOR__ because they # are insufficiently precise to distinguish things like # libc-2.0.6 and libc-2.0.7. -if test -L /lib/libc.so.6; then - libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'` - libc=/lib/$libc +if test -L ${prefix}/lib/libc.so.6; then + libc=`ls -l ${prefix}/lib/libc.so.6 | awk '{print $NF}'` + libc=${prefix}/lib/$libc fi # Configure may fail to find lstat() since it's a static/inline @@ -423,3 +423,8 @@ libswanted="$libswanted pthread" ;; esac + +locincpth="" +loclibpth="" +glibpth="${prefix}/lib" +usrinc="${prefix}/include"