summaryrefslogtreecommitdiff
path: root/hints/irix_5.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-30 09:08:07 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-30 09:08:07 +0000
commite0561f8bdb3c55e652ac26501ebb98aed004197e (patch)
tree3e707b08e4b6e791d25f1051f5559c83a7a7f02d /hints/irix_5.sh
parent4e80e7c5725665b3bafef4fcead53e20131b5369 (diff)
downloadperl-e0561f8bdb3c55e652ac26501ebb98aed004197e.tar.gz
In IRIX 5.3 turn off some of the warnings that cannot
really be helped (e.g. warnings coming from system headers, or linker warnings during Configure). p4raw-id: //depot/perl@19087
Diffstat (limited to 'hints/irix_5.sh')
-rw-r--r--hints/irix_5.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/hints/irix_5.sh b/hints/irix_5.sh
index 70ea24f918..d0449cc407 100644
--- a/hints/irix_5.sh
+++ b/hints/irix_5.sh
@@ -12,7 +12,12 @@ i_time='define'
case "$cc" in
*gcc*) ccflags="$ccflags -D_BSD_TYPES" ;;
-*) ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 4000"
+*)
+ # The warnings turned off are:
+ # 608: Undefined the ANSI standard library defined macro stderr (nostdio.h)
+ # 658: bit-field 'th_off' type required to be int, unsigned int, or signed int. <netinet/tcp.h>
+ # 734: enum declaration must contain enum literals <sys/vnode.h>
+ ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 4000 -woff 608,658,734"
# Otherwise the cc thinks that a struct timeval * is not equivalent to
# a struct timeval *. Yeah, you read that right.
pp_sys_cflags='ccflags="$ccflags -DPERL_IRIX5_SELECT_TIMEVAL_VOID_CAST"'
@@ -26,6 +31,12 @@ set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'
shift
libswanted="$*"
+# Don't groan about unused libraries.
+case "$ldflags" in
+ *-Wl,-woff,84*) ;;
+ *) ldflags="$ldflags -Wl,-woff,84" ;;
+esac
+
# Date: Fri, 22 Dec 1995 11:49:17 -0800
# From: Matthew Black <black@csulb.edu>
# Subject: sockets broken under IRIX 5.3? YES...how to fix