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