diff options
Diffstat (limited to 'hints/next_3.sh')
-rw-r--r-- | hints/next_3.sh | 46 |
1 files changed, 40 insertions, 6 deletions
diff --git a/hints/next_3.sh b/hints/next_3.sh index e9f616a3f3..38ad0ec7cc 100644 --- a/hints/next_3.sh +++ b/hints/next_3.sh @@ -1,11 +1,12 @@ -# This file has been put together by Anno Siegel <siegel@zrz.TU-Berlin.DE> -# and Andreas Koenig <k@franz.ww.TU-Berlin.DE>. Comments, questions, and -# improvements welcome! +# This file has been put together by Anno Siegel <siegel@zrz.TU-Berlin.DE>, +# Andreas Koenig <k@franz.ww.TU-Berlin.DE> and Gerd Knops <gerti@BITart.com>. +# Comments, questions, and improvements welcome! # # These hints work for NeXT 3.2 and 3.3. 3.0 has it's own # special hint file. +# -ccflags='-DUSE_NEXT_CTYPE' +ccflags='-DUSE_NEXT_CTYPE -DUSE_PERL_SBRK -DHIDEMYMALLOC' POSIX_cflags='ccflags="-posix $ccflags"' ldflags='-u libsys_s' libswanted='dbm gdbm db' @@ -15,7 +16,12 @@ lddlflags='-nostdlib -r' # using GNU cc and try to specify -fpic for cccdlflags. cccdlflags=' ' +# +# Change the line below if you do not want to build 'quad-fat' +# binaries +# mab='-arch m68k -arch i386 -arch hppa -arch sparc' + archname='next-fat' ld='cc' @@ -23,20 +29,48 @@ i_utime='undef' groupstype='int' direntrytype='struct direct' d_strcoll='undef' + +###################################################################### +# THE MALLOC STORY +###################################################################### +# 1994: # the simple program `for ($i=1;$i<38771;$i++){$t{$i}=123}' fails # with Larry's malloc on NS 3.2 due to broken sbrk() -usemymalloc='n' +# +# setting usemymalloc='n' was the solution back then. Later came +# reports that perl would run unstable on 3.2: +# +# From about perl5.002beta1h perl became unstable on the +# NeXT. Intermittent coredumps were frequent on 3.2 OS. There were +# reports, that the developer version of 3.3 didn't have problems, so it +# seemed pretty obvious that we had to work around an malloc bug in 3.2. +# This hints file reflects a patch to perl5.002_01 that introduces a +# home made sbrk routine (remember, NeXT's sbrk _never_ worked). This +# sbrk makes it possible to run perl with its own malloc. Thanks to +# Ilya who showed me the way to his sbrk for OS/2!! +# andreas koenig, 1996-06-16 +# +# So, this hintsfile is using perl's malloc. If you want to turn perl's +# malloc off, you need to change remove '-DUSE_PERL_SBRK' and +# '-DHIDEMYMALLOC' from the ccflags above and set usemymalloc below +# to 'n'. +# +###################################################################### +usemymalloc='y' + d_uname='define' d_setpgid='define' d_setsid='define' d_tcgetpgrp='define' d_tcsetpgrp='define' + # # On some NeXT machines, the timestamp put by ranlib is not correct, and # this may cause useless recompiles. Fix that by adding a sleep before # running ranlib. The '5' is an empirical number that's "long enough." -# (Thanks to Andreas Koenig <k@franz.ww.tu-berlin.de>) +# ranlib='sleep 5; /bin/ranlib' + # # There where reports that the compiler on HPPA machines # fails with the -O flag on pp.c. |