From 4a2a30acb32a05aba5c82ecafab680f706fa78b9 Mon Sep 17 00:00:00 2001 From: naddy Date: Wed, 24 Aug 2011 15:36:38 +0000 Subject: [PATCH] Remove warning options not available with gcc < 4. ok eric@ --- multimedia/oggz/patches/patch-configure | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 multimedia/oggz/patches/patch-configure diff --git a/multimedia/oggz/patches/patch-configure b/multimedia/oggz/patches/patch-configure new file mode 100644 index 00000000000..68a705a773f --- /dev/null +++ b/multimedia/oggz/patches/patch-configure @@ -0,0 +1,24 @@ +$OpenBSD: patch-configure,v 1.1 2011/08/24 15:36:38 naddy Exp $ + +Remove compiler options not available with gcc < 4. + +--- configure.orig Tue Aug 23 21:52:22 2011 ++++ configure Tue Aug 23 21:52:33 2011 +@@ -11257,7 +11257,7 @@ fi + $as_echo_n "checking if $CC allows signed enums... " >&6; } + + ac_save_CFLAGS="$CFLAGS" +-CFLAGS="$CFLAGS -Wall -Wextra -Werror" ++CFLAGS="$CFLAGS -Wall -Werror" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + +@@ -12730,7 +12730,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ + # Checks for typedefs, structures, and compiler characteristics. + + if test "x$ac_cv_c_compiler_gnu" = xyes ; then +- CFLAGS="$CFLAGS -Wall -Wextra -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused" ++ CFLAGS="$CFLAGS -Wall -g -std=gnu99 -Wno-unused" + fi + +