OS/2 doc patch for _99
[p5sagit/p5-mst-13.2.git] / hints / next_4.sh
CommitLineData
760ac839 1######################################################################
25b26da3 2#
3# IMPORTANT: before you run 'make', you need to enter one of these two
4# lines (depending on your shell):
5# DYLD_LIBRARY_PATH=`pwd`; export DYLD_LIBRARY_PATH
6# or
7# setenv DYLD_LIBRARY_PATH `pwd`
8#
760ac839 9######################################################################
10
11# Posix support has been removed from NextStep
12#
25b26da3 13useposix='undef'
14
25b26da3 15libpth='/lib /usr/lib'
16libswanted=' '
17libc='/NextLibrary/Frameworks/System.framework/System'
18
25b26da3 19ldflags='-dynamic -prebind'
20lddlflags='-dynamic -bundle -undefined suppress'
760ac839 21ccflags='-dynamic -fno-common -DUSE_NEXT_CTYPE -DUSE_PERL_SBRK -DHIDEMYMALLOC'
25b26da3 22cccdlflags='none'
23ld='cc'
760ac839 24#optimize='-g -O'
25b26da3 25
bf5a71f0 26#
3c321fdc 27# Change the lines below if you do not want to build 'triple-fat'
bf5a71f0 28# binaries
29#
30archs=`/bin/lipo -info /usr/lib/libm.a | sed 's/^[^:]*:[^:]*: //'`
31for d in $archs
32do
33 mab="$mab -arch $d"
34done
35
3c321fdc 36#
37# Unfortunately, "cc -E - $mab" doesn't work. Since that's what
38# Configure will try if we add $mab to $ccflags, we won't. If you want
39# to build a fat binary, try changing $ccflags and $ccdlflags to look
40# like this when Configure invites you to edit config.h manually:
41#
42# ccflags="$ccflags $mab"
43# ccdlflags="$mab"
44#
45# (I wonder: Can we also set ld='libtool -xxx' ?)
46#
bf5a71f0 47
48useshprlib='true'
25b26da3 49dlext='bundle'
50so='dylib'
51
760ac839 52#
53# The default prefix would be '/usr/local'. But since many people are
54# likely to have still 3.3 machines on their network, we do not want
55# to overwrite possibly existing 3.3 binaries.
bf5a71f0 56# Allow a Configure -Dprefix=/foo/bar override.
760ac839 57#
bf5a71f0 58case "$prefix" in
59'') prefix='/usr/local/OPENSTEP' ;;
60esac
61
25b26da3 62#archlib='/usr/lib/perl5'
63#archlibexp='/usr/lib/perl5'
64archname='OPENSTEP-Mach'
65
66d_strcoll='undef'
67i_dbm='define'
68i_utime='undef'
69groupstype='int'
70direntrytype='struct direct'
71
760ac839 72######################################################################
73# THE MALLOC STORY
74######################################################################
75# 1994:
25b26da3 76# the simple program `for ($i=1;$i<38771;$i++){$t{$i}=123}' fails
77# with Larry's malloc on NS 3.2 due to broken sbrk()
760ac839 78#
79# setting usemymalloc='n' was the solution back then. Later came
80# reports that perl would run unstable on 3.2:
81#
82# From about perl5.002beta1h perl became unstable on the
83# NeXT. Intermittent coredumps were frequent on 3.2 OS. There were
84# reports, that the developer version of 3.3 didn't have problems, so it
85# seemed pretty obvious that we had to work around an malloc bug in 3.2.
86# This hints file reflects a patch to perl5.002_01 that introduces a
87# home made sbrk routine (remember, NeXT's sbrk _never_ worked). This
88# sbrk makes it possible to run perl with its own malloc. Thanks to
89# Ilya who showed me the way to his sbrk for OS/2!!
90# andreas koenig, 1996-06-16
91#
92# So, this hintsfile is using perl's malloc. If you want to turn perl's
93# malloc off, you need to change remove '-DUSE_PERL_SBRK' and
94# '-DHIDEMYMALLOC' from the ccflags above and set usemymalloc below
95# to 'n'.
96#
97######################################################################
98usemymalloc='y'
25b26da3 99clocktype='int'
100
101#
102# On some NeXT machines, the timestamp put by ranlib is not correct, and
103# this may cause useless recompiles. Fix that by adding a sleep before
104# running ranlib. The '5' is an empirical number that's "long enough."
105# (Thanks to Andreas Koenig <k@franz.ww.tu-berlin.de>)
106ranlib='sleep 5; /bin/ranlib'
107#
108# There where reports that the compiler on HPPA machines
109# fails with the -O flag on pp.c.
110# But since there is no HPPA for OPENSTEP...
111# pp_cflags='optimize="-g"'