FreeBSD 7 libc_r detection
Tony Cook [Tue, 21 Oct 2008 10:26:30 +0000 (21:26 +1100)]
Message-ID: <20081020232630.GA20563@mars.tony.develop-help.com>
Date: Tue, 21 Oct 2008 10:26:30 +1100

p4raw-id: //depot/perl@34542

hints/freebsd.sh

index 38908fe..f246bff 100644 (file)
@@ -211,6 +211,14 @@ 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"
+             ;;
+
        *)
              if [ ! -r "$lc_r" ]; then
              cat <<EOM >&4