This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
FreeBSD hints updates from Anton Berezin.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 5 Sep 2003 13:09:54 +0000 (13:09 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 5 Sep 2003 13:09:54 +0000 (13:09 +0000)
p4raw-id: //depot/perl@21044

hints/freebsd.sh

index 937df2a..0a74e6e 100644 (file)
@@ -87,10 +87,14 @@ case "$osvers" in
                ;;
        esac
        libswanted=`echo $libswanted | sed 's/ malloc / /'`
+       libswanted=`echo $libswanted | sed 's/ bind / /'`
+       # iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier.
+       libswanted=`echo $libswanted | sed 's/ iconv / /'`
        d_setregid='define'
        d_setreuid='define'
-       d_setegid='undef'
-       d_seteuid='undef'
+       d_setegid='define'
+       d_seteuid='define'
+       # d_dosuid='define' # Obsolete.
        ;;
 *)     usevfork='true'
        case "$usemymalloc" in
@@ -124,7 +128,7 @@ case "$osvers" in
             fi
             lddlflags='-Bshareable'
         fi
-        cccdlflags='-DPIC -fpic'
+        cccdlflags='-DPIC -fPIC'
         ;;
 esac
 
@@ -220,12 +224,15 @@ EOM
              fi
              ldflags="-pthread $ldflags"
              case "$osvers" in
-             4.*|5.0-release*) 
-                       # 4.x and 5.0-release have gethostbyaddr_r but it is
-                       # "Temporary function, not threadsafe"...
-                       d_gethostbyaddr_r="undef"
+             # Both in 4.x and 5.x gethostbyaddr_r exists but
+             # it is "Temporary function, not threadsafe"...
+             4.*)      d_gethostbyaddr_r="undef"
                        d_gethostbyaddr_r_proto="0"
                        ;;
+             5.*)      d_gethostbyaddr_r="undef"
+                       d_gethostbyaddr_r_proto="0"
+
+                       ;;
              esac
              ;;