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