summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-01 19:22:16 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-01 19:22:16 +0000
commit2590a1d735c9a5b2bb0473048e14315c625a1b7f (patch)
treee5a83165d9901d570944cfa10646424b2e285907
parent6ff868eed1e3e3c48a498103d08c46492bb90e3e (diff)
downloadperl-2590a1d735c9a5b2bb0473048e14315c625a1b7f.tar.gz
Mac OS X doesn't have threadsafe (_r) libc interfaces.
Until it has, better stop early if someone requests threads. p4raw-id: //depot/perl@12300
-rw-r--r--hints/darwin.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index c2e7606d7b..b4a7e52898 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -113,3 +113,20 @@ LC_ALL=C; export LC_ALL;
# makefile in the same place. Since Darwin uses GNU make, this dodges
# the problem.
firstmakefile=GNUmakefile;
+
+#
+# The libraries are not threadsafe as of OS X 10. (10.1?)
+# Better stop now.
+#
+# Fix when Apple fixes libc.
+#
+case "$usethreads$useithreads$use5005threads" in
+*define*)
+cat <<EOM >&4
+
+*** You do not have threadsafe libraries, I cannot use threads.
+*** Cannot continue, aborting.
+EOM
+ exit 1
+ ;;
+esac