Ticket #1695: perl-5.8.7-libc-2.patch

File perl-5.8.7-libc-2.patch, 1.1 KB (added by dbn.lists@…, 19 years ago)

Ch. 5 perl patch forcing default default include dir to ${prefix}/include

  • hints/linux.sh

    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
    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
     
    315315        ;;
    316316esac
    317317EOCBU
     318locincpth=""
     319loclibpth=""
     320glibpth="${prefix}/lib"
     321usrinc="${prefix}/include"