summaryrefslogtreecommitdiffstats
path: root/config/irix6.x
diff options
context:
space:
mode:
Diffstat (limited to 'config/irix6.x')
-rw-r--r--config/irix6.x16
1 files changed, 13 insertions, 3 deletions
diff --git a/config/irix6.x b/config/irix6.x
index 4ba1252..ed16b69 100644
--- a/config/irix6.x
+++ b/config/irix6.x
@@ -8,7 +8,7 @@
# The default compiler is `cc' and there is no ranlib.
if test "X-" = "X-$CC"; then
- CC=cc
+ CC='cc -n32'
CC_BASENAME=cc
fi
RANLIB=:
@@ -25,22 +25,32 @@ case "X-$CC_BASENAME" in
;;
*)
+ CFLAGS="$CFLAGS -ansi"
+
# Always turn off these compiler warnings:
# 1174: function declared but not used
# 1429: the `long long' type is not standard
# 1209: constant expressions
# 1196: __vfork() (this is an SGI config problem)
+ CFLAGS="$CFLAGS -woff 1174,1429,1209,1196"
+
# Always turn off these loader warnings:
# 47: linked module might degrade performance
# 84: a library is not used
# 85: duplicate definition preemption
# 134: duplicate weak definition preemption
- CFLAGS="$CFLAGS -ansi -n32 -woff 1174,1429,1209,1196 -Wl,-woff,47 -Wl,-woff,84 -Wl,-woff,85 -Wl,-woff,134"
+ CFLAGS="$CFLAGS -Wl,-woff,47,-woff,84,-woff,85,-woff,134"
+
+ # Extra debugging flags
DEBUG_CFLAGS=-g
DEBUG_CPPFLAGS=
- # Higher optimizations relax alignment requirements needed
+
+ # Extra production flags
+ # Note: higher optimizations relax alignment requirements needed.
PROD_CFLAGS=-O1
PROD_CPPFLAGS=
+
+ # Extra profiling flags
PROFILE_CFLAGS=-pg
PROFILE_CPPFLAGS=
;;