Change 34556 by [EMAIL PROTECTED] on 2008/10/22 08:50:10

        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.10/perl/hints/freebsd.sh#2 integrate

Differences ...

==== //depot/maint-5.10/perl/hints/freebsd.sh#2 (text) ====
Index: perl/hints/freebsd.sh
--- perl/hints/freebsd.sh#1~32694~      2007-12-22 01:23:09.000000000 -0800
+++ perl/hints/freebsd.sh       2008-10-22 01:50:10.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.

Reply via email to