Change 34559 by [EMAIL PROTECTED] on 2008/10/22 19:30:58
Integrate:
[ 34556]
Integrate:
[ 34542]
Subject: FreeBSD 7 libc_r detection
From: Tony Cook <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Date: Tue, 21 Oct 2008 10:26:30 +1100
[ 34546]
Future-proof the FreeBSD hints - assume that FreeBSD 8, 9 etc behave
like 7, not 6 and earlier.
Affected files ...
... //depot/maint-5.8/perl/hints/freebsd.sh#16 integrate
Differences ...
==== //depot/maint-5.8/perl/hints/freebsd.sh#16 (text) ====
Index: perl/hints/freebsd.sh
--- perl/hints/freebsd.sh#15~32404~ 2007-11-19 05:18:32.000000000 -0800
+++ perl/hints/freebsd.sh 2008-10-22 12:30:58.000000000 -0700
@@ -211,7 +211,7 @@
exit 1
;;
- *)
+ [3-5].*)
if [ ! -r "$lc_r" ]; then
cat <<EOM >&4
POSIX threads should be supported by FreeBSD $osvers --
@@ -243,6 +243,14 @@
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
End of Patch.