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:
parent
e06177ee65
commit
789e258d6c
|
@ -37,7 +37,6 @@ fi
|
|||
AS=${AS-as}
|
||||
AC_SUBST(AS)
|
||||
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"
|
||||
AC_MSG_CHECKING([supported compiler flags])
|
||||
old_cflags=$CFLAGS
|
||||
|
@ -50,7 +49,7 @@ if test "$GCC" = yes; then
|
|||
],[])
|
||||
CFLAGS=$old_cflags
|
||||
done
|
||||
CFLAGS="$CFLAGS $RPMCFLAGS"
|
||||
CFLAGS="$CFLAGS -fPIC -DPIC -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes $RPMCFLAGS"
|
||||
fi
|
||||
export CFLAGS
|
||||
|
||||
|
|
Loading…
Reference in New Issue