source: patches/perl-5.8.8-libc-1.patch @ 69cde8d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 69cde8d was 69cde8d, checked in by Jim Gifford <clfs@…>, 15 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 1.1 KB
  • hints/linux.sh

    Submitted By: Anderson Lizardo <andersonlizardo(at)yahoo(dot)com(dot)br>
    Date: 2006-02-02
    Initial Package Version: 5.8.8
    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. 
    
    	     Updated to Perl 5.8.8 by Jim Gifford
    
    diff -Naur perl-5.8.8.orig/hints/linux.sh perl-5.8.8/hints/linux.sh
    old new  
    5252# We don't use __GLIBC__ and  __GLIBC_MINOR__ because they
    5353# are insufficiently precise to distinguish things like
    5454# libc-2.0.6 and libc-2.0.7.
    55 if test -L /lib/libc.so.6; then
    56     libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
    57     libc=/lib/$libc
     55if test -L ${prefix}/lib/libc.so.6; then
     56    libc=`ls -l ${prefix}/lib/libc.so.6 | awk '{print $NF}'`
     57    libc=${prefix}/lib/$libc
    5858fi
    5959
    6060# Configure may fail to find lstat() since it's a static/inline
     
    330330    libswanted="$*"
    331331    ;;
    332332esac
     333locincpth=""
     334loclibpth=""
     335glibpth="${prefix}/lib"
Note: See TracBrowser for help on using the repository browser.