Author: jhuntwork
Date: 2006-02-10 15:54:00 -0700 (Fri, 10 Feb 2006)
New Revision: 1395

Added:
   trunk/perl/perl-5.8.7-libc-2.patch
Log:
Added updated perl libc patch. Thanks Dan Nicholson.

Added: trunk/perl/perl-5.8.7-libc-2.patch
===================================================================
--- trunk/perl/perl-5.8.7-libc-2.patch                          (rev 0)
+++ trunk/perl/perl-5.8.7-libc-2.patch  2006-02-10 22:54:00 UTC (rev 1395)
@@ -0,0 +1,32 @@
+Submitted By: Anderson Lizardo <andersonlizardo(at)yahoo(dot)com(dot)br>
+Date: 2003-09-06
+Initial Package Version: 5.8.0
+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 and
+             headers.
+
+diff -Naur perl-5.8.7.orig/hints/linux.sh perl-5.8.7/hints/linux.sh
+--- perl-5.8.7.orig/hints/linux.sh     2005-04-04 13:08:31.000000000 -0700
++++ perl-5.8.7/hints/linux.sh  2006-02-05 07:30:36.173645248 -0800
+@@ -52,9 +52,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
+@@ -315,3 +315,7 @@
+       ;;
+ esac
+ EOCBU
++locincpth=""
++loclibpth=""
++glibpth="${prefix}/lib"
++usrinc="${prefix}/include"

-- 
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to