This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The search for static _s-suffixex libs was broken;
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Feb 2000 06:31:08 +0000 (06:31 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Feb 2000 06:31:08 +0000 (06:31 +0000)
add -L/lib/pa20_64 only iff there.

p4raw-id: //depot/cfgperl@5315

Configure
hints/hpux.sh

index 1341a6e..315ada8 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Mon Feb 28 08:07:01 EET 2000 [metaconfig 3.0 PL70]
+# Generated on Mon Feb 28 08:28:06 EET 2000 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.com)
 
 cat >/tmp/c1$$ <<EOF
@@ -3740,6 +3740,7 @@ for thislib in $libswanted; do
                xxx=$thisdir/lib${thislib}_s$_a
                $test -f "$xxx" && eval $libscheck
                $test -f "$xxx" && libstyle=static
+               $test -f "$xxx" && thislib=${thislib}_s
            fi
            if test ! -f "$xxx"; then
                xxx=$thisdir/Slib$thislib$_a
index ba6efa0..8d02637 100644 (file)
@@ -160,7 +160,7 @@ EOM
 
     ccflags="$ccflags +DD64"
     ldflags="$ldflags +DD64"
-    loclibpth="$loclibpth /lib/pa20_64"
+    test -d /lib/pa20_64 && loclibpth="$loclibpth /lib/pa20_64"
     libscheck='case "`file $xxx`" in
 *LP64*|*PA-RISC2.0*) ;;
 *) xxx=/no/64-bit$xxx ;;
@@ -181,12 +181,12 @@ esac'
     libswanted="$*"
 
     case "`$cc -v 2>&1`" in
-    *gcc*) ccflags="$ccflags -L/lib/pa20_64" ;;
+    *gcc*) test -d /lib/pa20_64 && ccflags="$ccflags -L/lib/pa20_64" ;;
     esac
     ;;
 *) loclibpth="$loclibpth /lib/pa1.1"
     case "`$cc -v 2>&1`" in
-    *gcc*) ccflags="$ccflags -L/lib/pa20_64" ;;
+    *gcc*) test -d /lib/pa20_64 && ccflags="$ccflags -L/lib/pa20_64" ;;
     esac
     ;;
 esac