summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2016-12-08 10:07:09 +0200
committerPanu Matilainen <pmatilai@redhat.com>2016-12-08 10:09:35 +0200
commit0584101e15539dc022db27bba801e5d6e8d4679b (patch)
tree28f69155b70590385b3fe28dad89de06422fec44
parent5ccfb50ddc0038e00596df67d78dfac07642bf99 (diff)
downloadrpm-0584101e15539dc022db27bba801e5d6e8d4679b.tar.gz
Unbreak gcc options checking
Commit c810a0aca3f1148d2072d44b91b8cc9caeb4cf19 changed the gcc flag test to include a call to alloca() which at least on GCC 6.2 just causes all the tests to fail with implicit declaration warnings which are errors since we test with -Werror. Include <alloca.h> to avoid the warnings and thus make the test functional again.
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2eaf97ed5..0e5188646 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,7 +43,8 @@ if test "$GCC" = yes; then
echo
for flag in $cflags_to_try; do
CFLAGS="$CFLAGS $flag -Werror"
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[alloca(100);]])],[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[#include <alloca.h>
+ alloca(100);]])],[
echo " $flag"
RPMCFLAGS="$RPMCFLAGS $flag"
],[])