From 2860f1780ca92c779ee0a2c545ae1b9c4818dc53 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sat, 9 Mar 2013 19:42:26 +1100 Subject: [PATCH] configure.ac : If gcc is version 4.2, use -fgnu89-inline. Using -gnu-inline avoids a rather ugly warning message that only seems to be present with gcc-4.2. --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 47804d4..3a847ab 100644 --- a/configure.ac +++ b/configure.ac @@ -360,14 +360,18 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then if test x$enable_gcc_werror = "xyes" ; then CFLAGS="-Wall -Wextra -Werror $CFLAGS" CXXFLAGS="-Wall -Wextra -Werror $CXXFLAGS" - fi + fi if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = elf; then CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR" CFLAGS="$CFLAGS -fvisibility=hidden" CXXFLAGS="$CXXFLAGS -fvisibility=hidden" + fi + + if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then + XIPH_ADD_CFLAGS([-fgnu89-inline]) + fi fi -fi XIPH_ADD_CFLAGS([-Wextra]) -- 2.7.4