Commit | Line | Data |
---|---|---|
e8c10df3 SH |
1 | # irix_6.sh |
2 | # from Krishna Sethuraman, krishna@sgi.com | |
3 | # Date: Wed Jan 18 11:40:08 EST 1995 | |
4 | # added `-32' to force compilation in 32-bit mode. | |
5 | # otherwise, copied from irix_5.sh. | |
6 | ||
7 | # Perl built with this hints file under IRIX 6.0.1 passes | |
8 | # all tests (`make test'). | |
9 | ||
10 | # Tue Jan 2 14:52:36 EST 1996 | |
11 | # Apparently, there's a stdio bug that can lead to memory | |
12 | # corruption using perl's malloc, but not SGI's malloc. | |
13 | usemymalloc='n' | |
14 | ||
15 | ld=ld | |
16 | i_time='define' | |
17 | cc="cc -32" | |
18 | ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000" | |
19 | lddlflags="-32 -shared" | |
20 | ||
21 | # We don't want these libraries. Anyone know why? | |
22 | set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'` | |
23 | shift | |
24 | libswanted="$*" | |
25 | # | |
26 | # The following might be of interest if you wish to try 64-bit mode: | |
27 | # irix_6_64bit.sh | |
28 | # Krishna Sethuraman, krishna@sgi.com | |
29 | # taken from irix_5.sh . Changes from irix_5.sh: | |
30 | # Olimit and nested comments (warning 1009) no longer accepted | |
31 | # -OPT:fold_arith_limit so POSIX module will optimize | |
32 | # no 64bit versions of sun, crypt, nsl, socket, dl dso's available | |
33 | # as of IRIX 6.0.1 so omit those from libswanted line via `sed'. | |
34 | ||
35 | # perl 5 built with this hints file passes most tests (`make test'). | |
36 | # Fails on op/subst test only. (built and tested under IRIX 6.0.1). | |
37 | ||
38 | # i_time='define' | |
39 | # ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -woff 1009 -OPT:fold_arith_limit=1046" | |
40 | # lddlflags="-shared" | |
41 | # set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ sun / /' -e 's/ crypt / /' -e 's/ nsl / /' -e 's/ dl / /'` | |
42 | # shift | |
43 | # libswanted="$*" | |
104d25b7 JH |
44 | |
45 | case "$usethreads" in | |
46 | $define|true|[yY]*) | |
47 | cat >&4 <<EOM | |
48 | IRIX `uname -r` does not support POSIX threads. | |
49 | You should upgrade to at least IRIX 6.2 with pthread patches. | |
50 | EOM | |
51 | exit 1 | |
52 | ;; | |
53 | esac | |
54 | ||
10cc9d2a JH |
55 | case " $use64bits $use64bitint $use64bitall " in |
56 | *" $define "*|*" true "*|*" [yY] "*) | |
104d25b7 JH |
57 | cat >&4 <<EOM |
58 | IRIX `uname -r` does not support 64-bit types. | |
59 | You should upgrade to at least IRIX 6.2. | |
60 | Cannot continue, aborting. | |
61 | EOM | |
62 | exit 1 | |
63 | esac | |
10cc9d2a | 64 |