X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Firix_6.sh;h=1b032cdb708d5a787ad6303182c3c9e6c5bde58f;hb=097ee67dff1c60f201bc09435bc6eaeeafcd8123;hp=cb2f5dd60919a5afcd45c47aa2dca86ca32a16ce;hpb=ea95c1407851ede0a28b53a77da0cb2fc072454d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/irix_6.sh b/hints/irix_6.sh index cb2f5dd..1b032cd 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -121,6 +121,13 @@ malloc_cflags='ccflags="-DSTRICT_ALIGNMENT $ccflags"' ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -D_POSIX_C_SOURCE" optimize="-O3" usenm='undef' + case "`uname -s`" in + # Without the -mabi=64 gcc in 64-bit IRIX has problems passing + # and returning small structures. This affects inet_*() and semctl(). + # See http://reality.sgi.com/ariel/freeware/gcc-2.8.1-notes.html + # for more information. Reported by Lionel Cons . + IRIX64) ccflags="$ccflags -mabi=64" ;; + esac ;; *) # this is needed to force the old-32 paths @@ -177,7 +184,7 @@ EOM 6.2) cat >&4 <