summaryrefslogtreecommitdiff
path: root/hints/freebsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/freebsd.sh')
-rw-r--r--hints/freebsd.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index 6ce5fa720c..e20d40d249 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -108,3 +108,17 @@ problem. Try
EOM
+if [ "X$usethreads" != "X" ]; then
+ if [ ! -r /usr/lib/libc_r.a ]; then
+ cat <<'EOM'
+
+The re-entrant C library /usr/lib/libc_r.a does not exist; cannot build
+threaded Perl. Consider upgrading to a newer FreeBSD snapshot or release:
+at least the FreeBSD 3.0-971225-SNAP is known to have the libc_r.a.
+
+EOM
+ exit 1
+ fi
+ libswanted="$libswanted c_r"
+ ccflags="-DUSE_THREADS $ccflags"
+fi