BSD/OS (bsdi) hints update by Timur I. Bakeyev and Todd C. Miller,
[p5sagit/p5-mst-13.2.git] / hints / netbsd.sh
index a8cc7dc..7bd0a25 100644 (file)
@@ -34,7 +34,7 @@ case "$osvers" in
 # we use -fPIC here because -fpic is *NOT* enough for some of the
 # extensions like Tk on some netbsd platforms (the sparc is one)
                cccdlflags="-DPIC -fPIC $cccdlflags"
-               lddlflags="-Bforcearchive -Bshareable $lddlflags"
+               lddlflags="-Bshareable $lddlflags"
        else
                d_dlopen=$undef
        fi
@@ -51,20 +51,22 @@ case "$osvers" in
 0.9*|1.[012]*|1.3|1.3.1)
        d_setregid="$undef"
        d_setreuid="$undef"
-       d_setrgid="$undef"
-       d_setruid="$undef"
        ;;
 esac
 
+# These are obsolete in any netbsd.
+d_setrgid="$undef"
+d_setruid="$undef"
+
 # there's no problem with vfork.
 case "$usevfork" in
 '') usevfork=true ;;
 esac
 
-# Avoid telldir prototype conflict in pp_sys.c  (NetBSD uses const DIR *)
-# Configure should test for this.  Volunteers?
-pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
-
 # Pre-empt the /usr/bin/perl question of installperl.
 installusrbinperl='n'
 
+# Recognize the NetBSD packages collection.
+# GDBM might be here.
+test -d /usr/pkg/lib     && loclibpth="$loclibpth /usr/pkg/lib"
+test -d /usr/pkg/include && locincpth="$locincpth /usr/pkg/include"