From: Lionel Cons Date: Thu, 1 Apr 1999 14:05:28 +0000 (+0200) Subject: Add -mabi=64 to ccflags for 64-bit IRIX gcc. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2fe73b3269410a5e221e0fc828a6f8bd01f2caa6;p=p5sagit%2Fp5-mst-13.2.git Add -mabi=64 to ccflags for 64-bit IRIX gcc. To: jhi@iki.fi Cc: perlbug@perl.com, kstar@isinet.com, Philippe Defert Subject: Re: Not OK: perl 5.00503 on IP27-irix 6.5 (UNINSTALLED) Message-Id: <199904011205.OAA11380@mercury.cern.ch> p4raw-id: //depot/cfgperl@3208 --- diff --git a/hints/irix_6.sh b/hints/irix_6.sh index 6a115b8..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