summaryrefslogtreecommitdiff
path: root/hints/freebsd.sh
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-10-21 11:15:45 +0000
committerNicholas Clark <nick@ccl4.org>2008-10-21 11:15:45 +0000
commit3ac4909ed2102ff7bf3d55a080209f1d016755c2 (patch)
treeb4b5119eed76791e333d16c270afbe126042d100 /hints/freebsd.sh
parentc76230386fc5e6fba9fdbeab473abbf4f4adcbe3 (diff)
downloadperl-3ac4909ed2102ff7bf3d55a080209f1d016755c2.tar.gz
Future-proof the FreeBSD hints - assume that FreeBSD 8, 9 etc behave
like 7, not 6 and earlier. p4raw-id: //depot/perl@34546
Diffstat (limited to 'hints/freebsd.sh')
-rw-r--r--hints/freebsd.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index f246bffd36..7d543be045 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -211,15 +211,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 +243,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