perlbug -d,-v: fix uninit value warnings
[p5sagit/p5-mst-13.2.git] / hints / freebsd.sh
index f246bff..44cf0eb 100644 (file)
@@ -114,7 +114,7 @@ case "$osvers" in
        lddlflags="-Bshareable $lddlflags"
        ;;
 
-*)
+3*|4*|5*|6*)
         objformat=`/usr/bin/objformat`
         if [ x$objformat = xaout ]; then
             if [ -e /usr/lib/aout ]; then
@@ -130,6 +130,13 @@ case "$osvers" in
         fi
         cccdlflags='-DPIC -fPIC'
         ;;
+*)
+       libpth="/usr/lib /usr/local/lib"
+       glibpth="/usr/lib /usr/local/lib"
+       ldflags="-Wl,-E "
+        lddlflags="-shared "
+        cccdlflags='-DPIC -fPIC'
+       ;;
 esac
 
 case "$osvers" in
@@ -211,15 +218,7 @@ EOM
              exit 1
              ;;
 
-       7.*)
-             # 7.x doesn't install libc_r by default, and Configure
-             # would fail in the code following
-             #
-             # gethostbyaddr_r() appears to have been implemented in 6.x+
-             ldflags="-pthread $ldflags"
-             ;;
-
-       *)
+       [3-5].*)
              if [ ! -r "$lc_r" ]; then
              cat <<EOM >&4
 POSIX threads should be supported by FreeBSD $osvers --
@@ -251,6 +250,14 @@ EOM
              d_gethostbyaddr_r_proto="0"
              ;;
 
+       *)
+             # 7.x doesn't install libc_r by default, and Configure
+             # would fail in the code following
+             #
+             # gethostbyaddr_r() appears to have been implemented in 6.x+
+             ldflags="-pthread $ldflags"
+             ;;
+
        esac
 
         case "$osvers" in