Also the lib/Thread.pm itself needs to be ignored if
[p5sagit/p5-mst-13.2.git] / hints / hpux.sh
index b1758ed..ca5c50b 100644 (file)
@@ -110,7 +110,7 @@ cc=${cc:-cc}
 case `$cc -v 2>&1`"" in
 *gcc*) ccisgcc="$define" ;;
 *) ccisgcc=''
-   ccversion=`which cc | xargs what | grep Compiler | awk '{print $2}'`
+   ccversion=`which cc | xargs what | awk '/Compiler/{print $2}'`
    ;;
 esac
 
@@ -179,6 +179,7 @@ EOM
     ccflags="$ccflags +DD64"
     ldflags="$ldflags +DD64"
     test -d /lib/pa20_64 && loclibpth="$loclibpth /lib/pa20_64"
+    libswanted="$libswanted pthread"
     libscheck='case "`/usr/bin/file $xxx`" in
 *LP64*|*PA-RISC2.0*) ;;
 *) xxx=/no/64-bit$xxx ;;