Fixed two long-standing locale bugs.
[p5sagit/p5-mst-13.2.git] / hints / irix_6.sh
index cb2f5dd..1b032cd 100644 (file)
@@ -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 <lionel.cons@cern.ch>.
+       IRIX64) ccflags="$ccflags -mabi=64" ;;
+       esac
        ;;
 *)
        # this is needed to force the old-32 paths
@@ -177,7 +184,7 @@ EOM
            6.2)
                cat >&4 <<EOM
 IRIX 6.2 can have the POSIX threads.
-However,the following IRIX patches (or their replacements) MUST be installed:
+However, the following IRIX patches (or their replacements) MUST be installed:
         1404 Irix 6.2 Posix 1003.1b man pages
         1645 IRIX 6.2 & 6.3 POSIX header file updates
         2000 Irix 6.2 Posix 1003.1b support modules