r2304 - trunk/perl

bdubbs at linuxfromscratch.org bdubbs at linuxfromscratch.org
Sat Jun 25 14:46:31 PDT 2011


Author: bdubbs
Date: 2011-06-25 15:46:26 -0600 (Sat, 25 Jun 2011)
New Revision: 2304

Added:
   trunk/perl/perl-5.14.1-libc-1.patch
Log:
Resync perl libc-1 patch


Added: trunk/perl/perl-5.14.1-libc-1.patch
===================================================================
--- trunk/perl/perl-5.14.1-libc-1.patch	                        (rev 0)
+++ trunk/perl/perl-5.14.1-libc-1.patch	2011-06-25 21:46:26 UTC (rev 2304)
@@ -0,0 +1,31 @@
+Submitted By: Matt Burgess <matthew at linuxfromscratch dot org>
+Date: 2009-08-25
+Initial Package Version: 5.10.1
+Origin: Not Submitted - LFS Specific
+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.14.1.orig/hints/linux.sh perl-5.14.1/hints/linux.sh
+--- perl-5.14.1.orig/hints/linux.sh	2011-06-09 15:04:29.000000000 -0500
++++ perl-5.14.1/hints/linux.sh	2011-06-25 16:42:12.000000000 -0500
+@@ -63,9 +63,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
++if test -L ${prefix}/lib/libc.so.6; then
+     libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
+-    libc=/lib/$libc
++    libc=${prefix}/lib/$libc
+ fi
+ 
+ # Configure may fail to find lstat() since it's a static/inline
+@@ -461,3 +461,8 @@
+     libswanted="$libswanted pthread"
+     ;;
+ esac
++
++locincpth=""
++loclibpth=""
++glibpth="${prefix}/lib"
++usrinc="${prefix}/include"




More information about the patches mailing list