perl-linux-static.sh 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --- hints/linux.sh.orig 2013-03-04 12:16:22.000000000 -0300
  2. +++ hints/linux.sh 2013-05-08 11:28:30.000000000 -0300
  3. @@ -66,10 +66,7 @@
  4. # We don't use __GLIBC__ and __GLIBC_MINOR__ because they
  5. # are insufficiently precise to distinguish things like
  6. # libc-2.0.6 and libc-2.0.7.
  7. -if test -L /lib/libc.so.6; then
  8. - libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
  9. - libc=/lib/$libc
  10. -fi
  11. +libc=${prefix}/lib/libc.a
  12. # Configure may fail to find lstat() since it's a static/inline
  13. # function in <sys/stat.h>.
  14. @@ -167,11 +164,7 @@
  15. # we don't want its libraries. So we try to prefer the system gcc
  16. # Still, as an escape hatch, allow Configure command line overrides to
  17. # plibpth to bypass this check.
  18. -if [ -x /usr/bin/gcc ] ; then
  19. - gcc=/usr/bin/gcc
  20. -else
  21. - gcc=gcc
  22. -fi
  23. +gcc=gcc
  24. case "$plibpth" in
  25. '') plibpth=`LANG=C LC_ALL=C $gcc -print-search-dirs | grep libraries |
  26. @@ -466,3 +459,8 @@
  27. libswanted="$libswanted pthread"
  28. ;;
  29. esac
  30. +
  31. +locincpth=""
  32. +loclibpth=""
  33. +glibpth="${prefix}/lib"
  34. +usrinc="${prefix}/include"