This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Future-proof the FreeBSD hints - assume that FreeBSD 8, 9 etc behave
authorNicholas Clark <nick@ccl4.org>
Tue, 21 Oct 2008 11:15:45 +0000 (11:15 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 21 Oct 2008 11:15:45 +0000 (11:15 +0000)
like 7, not 6 and earlier.

p4raw-id: //depot/perl@34546

hints/freebsd.sh

index f246bff..7d543be 100644 (file)
@@ -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