Change 16197 by jhi@alpha on 2002/04/26 20:04:44

        NetBSD: if the /usr/pkg/lib is there, the linker wants
        to know about it always (not just when using the pth).

Affected files ...

.... //depot/perl/hints/netbsd.sh#19 edit

Differences ...

==== //depot/perl/hints/netbsd.sh#19 (text) ====
Index: perl/hints/netbsd.sh
--- perl/hints/netbsd.sh.~1~    Fri Apr 26 14:15:05 2002
+++ perl/hints/netbsd.sh        Fri Apr 26 14:15:05 2002
@@ -88,9 +88,6 @@
         if pkg_info -qe pth; then 
             # Add -lpthread. 
             libswanted="$libswanted pthread" 
-            # -R so that we find the libpthread.so from /usr/pkg/lib
-            # during Configure and build.
-            ldflags="-R/usr/pkg/lib $ldflags" 
             # There is no libc_r as of NetBSD 1.5.2, so no c -> c_r. 
         else 
             echo "$0: You need to install the GNU pth.  Aborting." >&4 
@@ -101,6 +98,9 @@
 EOCBU
 
 # Recognize the NetBSD packages collection.
-# GDBM might be here.
-test -d /usr/pkg/lib     && loclibpth="$loclibpth /usr/pkg/lib"
+# GDBM might be here, pth might be there.
+if test -d /usr/pkg/lib; then
+       loclibpth="$loclibpth /usr/pkg/lib"
+       ldflags="$ldflags -R/usr/pkg/lib"
+fi
 test -d /usr/pkg/include && locincpth="$locincpth /usr/pkg/include"
End of Patch.

Reply via email to