X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Ffreebsd.sh;h=7d543be0457901781cdde1b115fa02154a0c8496;hb=4e73d6a402bc493d66d19c409c41e1e271c6450b;hp=38908fe724658facb94ee880000a440ede8409b6;hpb=0d4d1c152f27e79bb2170012c2b85f944e06d9e9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 38908fe..7d543be 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -211,7 +211,7 @@ EOM exit 1 ;; - *) + [3-5].*) if [ ! -r "$lc_r" ]; then cat <&4 POSIX threads should be supported by FreeBSD $osvers -- @@ -243,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