summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-25 15:45:06 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-25 15:45:06 +0000
commitbc961b003e8925ea1668627dcdfb26c75212b4c6 (patch)
tree747d580006cf4afe925fadcbdb5c0b4c53712bb5 /hints
parent808e22764acaa30a6102c376217d07f25df6e137 (diff)
downloadperl-bc961b003e8925ea1668627dcdfb26c75212b4c6.tar.gz
On OS X to use perl's malloc need to USE_PERL_SBRK and emulate sbrk()
using system malloc, because sbrk() stops giving us memory after about 14Mb. p4raw-id: //depot/perl@24981
Diffstat (limited to 'hints')
-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;