X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Firix_6.sh;h=f4bbf32d01c67af3cbc02e39b94003a0b151f15d;hb=878143fbd9fc1c2bef489be4fd428b8d222cc108;hp=e6ad0964c5105163a3ab1ef6ae36921f5b185970;hpb=104d25b722892cb36f4c988c17016ee0180c3b1a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/irix_6.sh b/hints/irix_6.sh index e6ad096..f4bbf32 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -121,6 +121,18 @@ 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" + ldflags="$ldflags -mabi=64 -L/usr/lib64" + lddlflags="$lddlflags -mabi=64" + ;; + *) ccflags="$ccflags -DIRIX32_SEMUN_BROKEN_BY_GCC" + ;; + esac ;; *) # this is needed to force the old-32 paths @@ -130,6 +142,9 @@ malloc_cflags='ccflags="-DSTRICT_ALIGNMENT $ccflags"' ;; esac +# Don't groan about unused libraries. +ldflags="$ldflags -Wl,-woff,84" + # We don't want these libraries. # Socket networking is in libc, these are not installed by default, # and just slow perl down. (scotth@sgi.com) @@ -177,7 +192,7 @@ EOM 6.2) cat >&4 < UU/use64bits.cbu <<'EOCBU' case "$use64bits" in $define|true|[yY]*) -esac case "`uname -r`" in [1-5]*|6.[01]) cat >&4 <&2 - -You will see a *** WHOA THERE!!! *** message from Configure for -d_open64. Keep the recommended value. See hints/irix6.sh -for more information. - -EOM ;; esac - ccflags="$ccflags -DUSE_64_BIT_FILES" ;; esac EOCBU