This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
NetBSD hint update
[perl5.git] / hints / irix_6.sh
CommitLineData
e8c10df3
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
f4cb4c40 10
e8c10df3
SH
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.
f4cb4c40 15
e8c10df3
SH
16case "$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 ;;
35esac
c43fed53 36
e8c10df3 37pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
16d20bd9
AD
38
39# We don't want these libraries. Anyone know why?
ecfc5424 40set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
f4cb4c40
AD
41shift
42libswanted="$*"
e8c10df3
SH
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)
ecfc5424 51#
e8c10df3
SH
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
f4cb4c40 63
e8c10df3
SH
64set `echo X "$libswanted "|sed -e 's/ sun / /' -e 's/ crypt / /' -e 's/ bsd / /' -e 's/ PW / /'`
65shift
66libswanted="$*"
f4cb4c40 67