mirror of https://github.com/moparisthebest/curl
Anything that looks like gcc 5.0 or more is no longer treated as gcc. I hope
this will make us exclude icc 8.0 etc.
This commit is contained in:
parent
8794cb286b
commit
a472cd9310
|
@ -1199,6 +1199,9 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
|
|||
gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
|
||||
AC_MSG_RESULT($gccver)
|
||||
|
||||
if test "$gccnum" -lt "500"; then
|
||||
dnl we only like gcc less than 5.0, since if it is above that it is
|
||||
dnl likely just a compiler that looks like gcc (like icc 8.0)!
|
||||
dnl here's the standard setup
|
||||
WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-format-nonliteral -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
|
||||
if test "$gccnum" -ge "296"; then
|
||||
|
@ -1211,7 +1214,6 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
|
|||
dnl gcc 3.3 and later
|
||||
WARN="$WARN -Wendif-labels"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
NEWFLAGS=""
|
||||
|
@ -1226,6 +1228,7 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
|
|||
done
|
||||
|
||||
CFLAGS="$CFLAGS $WARN $NEWFLAGS"
|
||||
fi
|
||||
|
||||
fi
|
||||
dnl strip off optimizer flags
|
||||
|
|
Loading…
Reference in New Issue