Revert change #19126, a poor attempt at fixing bug #21742.
[p5sagit/p5-mst-13.2.git] / hints / irix_5.sh
CommitLineData
a0d0e21e 1# irix_5.sh
c07a80fd 2# Tue Jan 9 16:04:38 EST 1996
3# Add note about socket patch.
4#
5# Tue Jan 2 14:52:36 EST 1996
38df4676 6# Apparently, there's a stdio bug that can lead to memory
7# corruption using perl's malloc, but not SGI's malloc.
8usemymalloc='n'
9
f0b7e567 10ld=ld
a0d0e21e 11i_time='define'
16d20bd9 12
13case "$cc" in
180c3c44 14*gcc*) ccflags="$ccflags -D_BSD_TYPES" ;;
e0561f8b 15*)
16 # The warnings turned off are:
17 # 608: Undefined the ANSI standard library defined macro stderr (nostdio.h)
18 # 658: bit-field 'th_off' type required to be int, unsigned int, or signed int. <netinet/tcp.h>
19 # 734: enum declaration must contain enum literals <sys/vnode.h>
20 ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 4000 -woff 608,658,734"
4e80e7c5 21# Otherwise the cc thinks that a struct timeval * is not equivalent to
22# a struct timeval *. Yeah, you read that right.
23pp_sys_cflags='ccflags="$ccflags -DPERL_IRIX5_SELECT_TIMEVAL_VOID_CAST"'
24 ;;
16d20bd9 25esac
26
a0d0e21e 27lddlflags="-shared"
16d20bd9 28# For some reason we don't want -lsocket -lnsl or -ldl. Can anyone
29# contribute an explanation?
a0d0e21e 30set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
31shift
32libswanted="$*"
c07a80fd 33
e0561f8b 34# Don't groan about unused libraries.
35case "$ldflags" in
36 *-Wl,-woff,84*) ;;
37 *) ldflags="$ldflags -Wl,-woff,84" ;;
38esac
39
c07a80fd 40# Date: Fri, 22 Dec 1995 11:49:17 -0800
41# From: Matthew Black <black@csulb.edu>
42# Subject: sockets broken under IRIX 5.3? YES...how to fix
43# Anyone attempting to use perl4 or perl5 with SGI IRIX 5.3 may discover
44# that sockets are essentially broken. The syslog interface for perl also
45# fails because it uses the broken socket interface. This problem was
46# reported to SGI as bug #255347 and it can be fixed by installing
47# patchSG0000596. The patch can be downloaded from Advantage OnLine (SGI's
48# WWW server) or from the Support Advantage 9/95 Patch CDROM. Thanks to Tom
49# Christiansen and others who provided assistance.
104d25b7 50
51case "$usethreads" in
52$define|true|[yY]*)
53 cat >&4 <<EOM
54IRIX `uname -r` does not support POSIX threads.
55You should upgrade to at least IRIX 6.2 with pthread patches.
56EOM
57 exit 1
58 ;;
59esac
60
10cc9d2a 61case " $use64bits $use64bitint $use64bitall " in
62*" $define "*|*" true "*|*" [yY] "*)
104d25b7 63 cat >&4 <<EOM
64IRIX `uname -r` does not support 64-bit types.
65You should upgrade to at least IRIX 6.2.
66Cannot continue, aborting.
67EOM
68 exit 1
69esac
70