--- perl-5.14.1/hints/linux.sh~	2011-06-09 21:04:29.000000000 +0100
+++ perl-5.14.1/hints/linux.sh	2011-06-26 10:59:47.926012359 +0100
@@ -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
-    libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
-    libc=/lib/$libc
+if test -L ${prefix}/lib/libc.so.6; then
+    libc=$(readlink ${prefix}/lib/libc.so.6)
+    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"
