From: Jarkko Hietaniemi Date: Thu, 11 Sep 2003 08:25:13 +0000 (+0000) Subject: The change of not needing -pthread in FreeBSD 5.x X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2dd5b7faa23ffcbb13493e9925c91345fc521a6d;p=p5sagit%2Fp5-mst-13.2.git The change of not needing -pthread in FreeBSD 5.x is very recent (Sep 3) (from Anton Berezin). p4raw-id: //depot/perl@21181 --- diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 901415e..7e75ddd 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -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" ;;