The change of not needing -pthread in FreeBSD 5.x
Jarkko Hietaniemi [Thu, 11 Sep 2003 08:25:13 +0000 (08:25 +0000)]
is very recent (Sep 3) (from Anton Berezin).

p4raw-id: //depot/perl@21181

hints/freebsd.sh

index 901415e..7e75ddd 100644 (file)
@@ -231,7 +231,9 @@ EOM
                        ;;
              5.*)      d_gethostbyaddr_r="undef"
                        d_gethostbyaddr_r_proto="0"
-                       # no need for -pthread in 5.*
+                        if [ `/sbin/sysctl -n kern.osreldate` -lt 500016 ]; then
+                                ldflags="-pthread $ldflags"
+                        fi
                        ;;
              *)        ldflags="-pthread $ldflags"
                        ;;