hints/freebsd.sh update (don't use -lmalloc)
[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.
4633a7c4 9
89008bd9 10# Use sh Configure -Dcc='cc -n32' to try compiling with -n32.
11
12case "$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"
e48b0b0a 16 optimize='none' # Miniperl core dumps with -O
89008bd9 17 ldflags=' -L/usr/local/lib -L/usr/lib32 -L/lib32'
f08dbc0c 18 cccdlflags=' '
19 lddlflags="-n32 -shared"
89008bd9 20 libc='/usr/lib32/libc.so'
21 plibpth='/usr/lib32 /lib32 /usr/ccs/lib'
89008bd9 22 nm_opt='-p'
23 nm_so_opt='-p'
89008bd9 24 ;;
25*)
26 ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -Olimit 3000"
27 ;;
28esac
4633a7c4 29
f08dbc0c 30pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
31
4633a7c4 32# We don't want these libraries. Anyone know why?
33set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
34shift
35libswanted="$*"
5e79a27a 36
89008bd9 37# I have conflicting reports about the sun, crypt, bsd, and PW
38# libraries on Irix 6.2.
39#
40# One user rerports:
4633a7c4 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)
89008bd9 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#
5e79a27a 51set `echo X "$libswanted "|sed -e 's/ sun / /' -e 's/ crypt / /' -e 's/ bsd / /' -e 's/ PW / /'`
52shift
53libswanted="$*"
89008bd9 54