Run gcc supported flags test without our stricter warning flags

- Fixes fallout from commit f9c69f803f74bd458269c7a06def494ea63387e6:
  running these tests with -Wstrict-prototypes causes all these tests
  to fail as AC_LANG_PROGRAM() uses an incomplete prototype for
  main() :(
This commit is contained in:
Panu Matilainen 2012-08-14 08:44:32 +03:00
parent e06177ee65
commit 789e258d6c
1 changed files with 1 additions and 2 deletions

View File

@ -37,7 +37,6 @@ fi
AS=${AS-as} AS=${AS-as}
AC_SUBST(AS) AC_SUBST(AS)
if test "$GCC" = yes; then if test "$GCC" = yes; then
CFLAGS="$CFLAGS -fPIC -DPIC -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes"
cflags_to_try="-fno-strict-aliasing -fstack-protector -Wempty-body" cflags_to_try="-fno-strict-aliasing -fstack-protector -Wempty-body"
AC_MSG_CHECKING([supported compiler flags]) AC_MSG_CHECKING([supported compiler flags])
old_cflags=$CFLAGS old_cflags=$CFLAGS
@ -50,7 +49,7 @@ if test "$GCC" = yes; then
],[]) ],[])
CFLAGS=$old_cflags CFLAGS=$old_cflags
done done
CFLAGS="$CFLAGS $RPMCFLAGS" CFLAGS="$CFLAGS -fPIC -DPIC -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes $RPMCFLAGS"
fi fi
export CFLAGS export CFLAGS