From: Nicholas Clark Date: Sat, 25 Jun 2005 15:45:06 +0000 (+0000) Subject: On OS X to use perl's malloc need to USE_PERL_SBRK and emulate sbrk() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bc961b003e8925ea1668627dcdfb26c75212b4c6;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/hints/darwin.sh b/hints/darwin.sh index 4a9683b..ad93776 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;