summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hints/darwin.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index 4a9683b9f0..ad9377623a 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -206,6 +206,9 @@ esac
case "$usemymalloc" in
'') usemymalloc='n' ;;
esac
+# However sbrk() returns -1 (failure) somewhere in lib/unicore/mktables at
+# around 14M, so we need to use system malloc() as our sbrk()
+malloc_cflags='ccflags="-DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC $ccflags"'
# Locales aren't feeling well.
LC_ALL=C; export LC_ALL;