Take out the -Wl,-z as we have survice so far without.
[p5sagit/p5-mst-13.2.git] / hints / irix_6.sh
index cab48b4..67e61b4 100644 (file)
@@ -130,6 +130,8 @@ malloc_cflags='ccflags="-DSTRICT_ALIGNMENT $ccflags"'
                ldflags="$ldflags -mabi=64 -L/usr/lib64"
                lddlflags="$lddlflags -mabi=64"
                ;;
+       *)      ccflags="$ccflags -DIRIX32_SEMUN_BROKEN_BY_GCC"
+               ;;
        esac
        ;;
 *)
@@ -224,6 +226,8 @@ EOM
 esac
 EOCBU
 
+# The -n32 makes off_t to be 8 bytes, so we should have largefileness.
+
 # This script UU/use64bits.cbu will get 'called-back' by Configure 
 # after it has prompted the user for whether to use 64 bits.
 cat > UU/use64bits.cbu <<'EOCBU'
@@ -239,13 +243,15 @@ EOM
                exit 1
                ;;
            esac
-           case "$ccflags" in
+           case "$cc $ccflags" in
            *-n32*)
-               ccflags="$ccflags -DUSE_LONG_LONG"
+               case "$ccflags" in
+               *-DUSE_64_BITS*) ;;
+               *) ccflags="$ccflags -DUSE_64_BITS" ;;
+               esac
                archname64="-n32"
                ;;
            esac
-           ccflags="$ccflags -DUSE_64_BITS"
            ;;
 esac
 EOCBU