cvs commit: patches/perl perl-5.8.0-libc-3.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Sat Sep 6 22:00:45 PDT 2003


jim         03/09/06 23:00:45

  Added:       perl     perl-5.8.0-libc-3.patch
  Log:
  Added perl-5.8.0-libc-3.patch
  
  Revision  Changes    Path
  1.1                  patches/perl/perl-5.8.0-libc-3.patch
  
  Index: perl-5.8.0-libc-3.patch
  ===================================================================
  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.
  
  diff -uNr perl-5.8.0.orig/hints/linux.sh perl-5.8.0/hints/linux.sh
  --- perl-5.8.0.orig/hints/linux.sh	2002-06-05 23:46:00.000000000 +1000
  +++ perl-5.8.0/hints/linux.sh	2003-02-19 16:32:18.000000000 +1100
  @@ -51,9 +51,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
  @@ -282,3 +282,6 @@
   	;;
   esac
   EOCBU
  +locincpth=""
  +loclibpth=""
  +glibpth="${prefix}/lib"
  
  
  



More information about the patches mailing list