summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-09-11 08:25:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-09-11 08:25:13 +0000
commit2dd5b7faa23ffcbb13493e9925c91345fc521a6d (patch)
tree52a9ecc2c990471a95862edda63e980eb1ca4092 /hints
parent574d6bae531be70647aa0566b2395a2cd137f71f (diff)
downloadperl-2dd5b7faa23ffcbb13493e9925c91345fc521a6d.tar.gz
The change of not needing -pthread in FreeBSD 5.x
is very recent (Sep 3) (from Anton Berezin). p4raw-id: //depot/perl@21181
Diffstat (limited to 'hints')
-rw-r--r--hints/freebsd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index 901415e2a4..7e75ddd524 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"
;;