This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Newer ReadLine
[perl5.git] / hints / irix_6_2.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
10 # Use   sh Configure -Dcc='cc -n32' to try compiling with -n32.
11
12 case "$cc" in
13 *"cc -n32"*)
14         ld=ld
15         ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:fprop_limit=1500"
16         optimize='none'  # Miniperl core dumps with -O
17         ldflags=' -L/usr/local/lib -L/usr/lib32 -L/lib32'
18         cccdlflags=' '
19         lddlflags="-n32 -shared"
20         libc='/usr/lib32/libc.so'
21         plibpth='/usr/lib32 /lib32 /usr/ccs/lib'
22         nm_opt='-p'
23         nm_so_opt='-p'
24         ;;
25 *)
26         ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -Olimit 3000"
27         ;;
28 esac
29
30 pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
31
32 # We don't want these libraries.  Anyone know why?
33 set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
34 shift
35 libswanted="$*"
36
37 # I have conflicting reports about the sun, crypt, bsd, and PW
38 # libraries on Irix 6.2.
39 #
40 # One user rerports:
41 # Don't need sun crypt bsd PW under 6.2.  You *may* need to link
42 # with these if you want to run perl built under 6.2 on a 5.3 machine
43 # (I haven't checked)
44 #
45 # Another user reported that if he included those libraries, a large number
46 # of the tests failed (approx. 20-25) and he would get a core dump. To
47 # make things worse, test results were inconsistent, i.e., some of the
48 # tests would pass some times and fail at other times.
49 # The safest thing to do seems to be to eliminate them.
50 #
51 set `echo X "$libswanted "|sed -e 's/ sun / /' -e 's/ crypt / /' -e 's/ bsd / /' -e 's/ PW / /'`
52 shift
53 libswanted="$*"
54