diff options
Diffstat (limited to 'config/gnu-flags')
-rw-r--r-- | config/gnu-flags | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index 22ed2be..1938563 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -89,7 +89,7 @@ case "$host_os-$host_cpu" in *Pro*|*II*) # This check should be kept in sync with the *-i686 check below case "$cc_vendor-$cc_version" in - gcc-2.95*) + gcc-2.95*|gcc-3*) ARCH=${ARCH:="-march=i686"} ;; gcc-*|egcs-*|pgcc-*) @@ -102,7 +102,7 @@ case "$host_os-$host_cpu" in *-i686) case "$cc_vendor-$cc_version" in - gcc-2.9[56]*) + gcc-2.9[56]*|gcc-3*) ARCH=${ARCH:="-march=i686"} ;; gcc-*|egcs-*|pgcc-*) @@ -177,6 +177,13 @@ case "$cc_vendor-$cc_version" in cc_flags_set=yes ;; + gcc-3.*) + CFLAGS="`echo $CFLAGS | sed -e 's/-ansi/-std=c99/g'`" + + # Flags are set + cc_flags_set=yes + ;; + egcs-2.*|pgcc-2.*) # General CFLAGS="$CFLAGS $ARCH -Wsign-compare" |