This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix the API description of SvLEN_set()
[perl5.git] / hints / irix_5.sh
index d0449cc..d6350ce 100644 (file)
@@ -9,6 +9,7 @@ usemymalloc='n'
 
 ld=ld
 i_time='define'
+i_inttypes='undef'
 
 case "$cc" in
 *gcc*) ccflags="$ccflags -D_BSD_TYPES" ;;
@@ -17,8 +18,9 @@ case "$cc" in
    # 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
+   # 799: 'long long' is not standard ANSI.
+   ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 4300 -woff 608,658,734,799"
+# Without this 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"'
    ;;
@@ -31,11 +33,12 @@ set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'
 shift
 libswanted="$*"
 
+# IRIX 5.x does not have -woff for ld.
 # Don't groan about unused libraries.
-case "$ldflags" in
-    *-Wl,-woff,84*) ;;
-    *) ldflags="$ldflags -Wl,-woff,84" ;;
-esac
+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>