diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/irix6.x | 16 | ||||
-rw-r--r-- | config/irix64 | 4 |
2 files changed, 16 insertions, 4 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= ;; diff --git a/config/irix64 b/config/irix64 index 2a4d782..1c17c7c 100644 --- a/config/irix64 +++ b/config/irix64 @@ -46,7 +46,9 @@ case "X-$CC_BASENAME" in # (notice the peculiar syntax) # 47: branch instructions that degrade performance on R4000 # 84: a library is not used - CFLAGS="$CFLAGS -Wl,-woff,47 -Wl,-woff,84" + # 85: duplicate definition preemption (from -lnsl) + # 134: duplicate weak definition preemption (from -lnsl) + CFLAGS="$CFLAGS -Wl,-woff,47,-woff,84,-woff,85,-woff,134" # Extra debugging flags DEBUG_CFLAGS="-g -fullwarn" |