This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Removed vestigal support for Tenon Intersystems MachTen Unix layer for MacOS Classic.
[perl5.git] / hints / freebsd.sh
index 38908fe..7d543be 100644 (file)
@@ -211,7 +211,7 @@ EOM
              exit 1
              ;;
 
-       *)
+       [3-5].*)
              if [ ! -r "$lc_r" ]; then
              cat <<EOM >&4
 POSIX threads should be supported by FreeBSD $osvers --
@@ -243,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