summaryrefslogtreecommitdiff
path: root/hints/freebsd.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-09-05 13:09:54 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-09-05 13:09:54 +0000
commit91ffdfa4eed6a2efd5dc0c1293f84cd29ab61220 (patch)
tree405ba1e649254d372efc61479a740ff3b6b0fb3d /hints/freebsd.sh
parent2c9b96449de2a0e181e68c6d6cbaeaeb71258cf7 (diff)
downloadperl-91ffdfa4eed6a2efd5dc0c1293f84cd29ab61220.tar.gz
FreeBSD hints updates from Anton Berezin.
p4raw-id: //depot/perl@21044
Diffstat (limited to 'hints/freebsd.sh')
-rw-r--r--hints/freebsd.sh21
1 files changed, 14 insertions, 7 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index 937df2a85a..0a74e6e4b8 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -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
;;