summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
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"
;;