From: Nicholas Clark Date: Tue, 21 Oct 2008 11:15:45 +0000 (+0000) Subject: Future-proof the FreeBSD hints - assume that FreeBSD 8, 9 etc behave X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3ac4909ed2102ff7bf3d55a080209f1d016755c2;p=p5sagit%2Fp5-mst-13.2.git Future-proof the FreeBSD hints - assume that FreeBSD 8, 9 etc behave like 7, not 6 and earlier. p4raw-id: //depot/perl@34546 --- diff --git a/hints/freebsd.sh b/hints/freebsd.sh index f246bff..7d543be 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -211,15 +211,7 @@ EOM exit 1 ;; - 7.*) - # 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" - ;; - - *) + [3-5].*) if [ ! -r "$lc_r" ]; then cat <&4 POSIX threads should be supported by FreeBSD $osvers -- @@ -251,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