Describe __PACKAGE__ in perldelta
[p5sagit/p5-mst-13.2.git] / hints / irix_6.sh
1 # hints/irix_6_2.sh
2 #
3 # original from Krishna Sethuraman, krishna@sgi.com
4 #
5 # Updated Mon Jul 22 14:52:25 EDT 1996
6 #       Andy Dougherty <doughera@lafcol.lafayette.edu>
7 #       with help from Dean Roehrich <roehrich@cray.com>.
8 #   cc -n32 update info from Krishna Sethuraman, krishna@sgi.com.
9 #       additional update from Scott Henry, scotth@sgi.com
10
11 # Use   sh Configure -Dcc='cc -n32' to try compiling with -n32.
12 #     or -Dcc='cc -n32 -mips3' (or -mips4) to force (non)portability
13 # Don't bother with -n32 unless you have the 7.1 or later compilers.
14 #     But there's no quick and light-weight way to check in 6.2.
15
16 case "$cc" in
17 *"cc -n32"*)
18         ld=ld
19         ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:Olimit=0"
20 #       optimize='none' # for pre-7.1 compilers. Miniperl core dumps with -O
21         optimize='-O3'  # This works with the 7.1 and later compilers
22         ldflags=' -L/usr/local/lib -L/usr/lib32 -L/lib32'
23         cccdlflags=' '
24         lddlflags="-n32 -shared"
25         libc='/usr/lib32/libc.so'
26         plibpth='/usr/lib32 /lib32 /usr/ccs/lib'
27         nm_opt='-p'
28         nm_so_opt='-p'
29         ;;
30 *)
31         # this is needed to force the old-32 paths
32         #  since the system default can be changed.
33         ccflags="$ccflags -32 -D_BSD_TYPES -D_BSD_TIME -Olimit 3000"
34         ;;
35 esac
36
37 pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
38
39 # We don't want these libraries.  Anyone know why?
40 set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
41 shift
42 libswanted="$*"
43
44 # I have conflicting reports about the sun, crypt, bsd, and PW
45 # libraries on Irix 6.2.
46 #
47 # One user rerports:
48 # Don't need sun crypt bsd PW under 6.2.  You *may* need to link
49 # with these if you want to run perl built under 6.2 on a 5.3 machine
50 # (I haven't checked)
51 #
52 # Another user reported that if he included those libraries, a large number
53 # of the tests failed (approx. 20-25) and he would get a core dump. To
54 # make things worse, test results were inconsistent, i.e., some of the
55 # tests would pass some times and fail at other times.
56 # The safest thing to do seems to be to eliminate them.
57 #
58 #  Actually, the only libs that you want are '-lm'.  Everything else
59 # you need is in libc.  You do also need '-lbsd' if you choose not
60 # to use the -D_BSD_* defines.  Note that as of 6.2 the only
61 # difference between '-lmalloc' and '-lc' malloc is the debugging
62 # and control calls. -- scotth@sgi.com
63
64 set `echo X "$libswanted "|sed -e 's/ sun / /' -e 's/ crypt / /' -e 's/ bsd / /' -e 's/ PW / /'`
65 shift
66 libswanted="$*"
67