X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Firix_5.sh;h=d6350ce53910dee1f666e7c6724c11b8eb5722a2;hb=6137113dfd943e6f896f8b9c1a4df2b7d4e355ae;hp=30f11d76766096a40ca87bf33fe30240a01eb670;hpb=104d25b722892cb36f4c988c17016ee0180c3b1a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/irix_5.sh b/hints/irix_5.sh index 30f11d7..d6350ce 100644 --- a/hints/irix_5.sh +++ b/hints/irix_5.sh @@ -9,10 +9,21 @@ usemymalloc='n' ld=ld i_time='define' +i_inttypes='undef' 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. + # 734: enum declaration must contain enum literals + # 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"' + ;; esac lddlflags="-shared" @@ -22,6 +33,13 @@ 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 + # Date: Fri, 22 Dec 1995 11:49:17 -0800 # From: Matthew Black # Subject: sockets broken under IRIX 5.3? YES...how to fix @@ -43,8 +61,8 @@ EOM ;; esac -case "$use64bits" in -$define|true|[yY]*) +case " $use64bits $use64bitint $use64bitall " in +*" $define "*|*" true "*|*" [yY] "*) cat >&4 <