summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/evemu/files/evemu-1.0.10-werror.patch')
-rw-r--r--sys-apps/evemu/files/evemu-1.0.10-werror.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-apps/evemu/files/evemu-1.0.10-werror.patch b/sys-apps/evemu/files/evemu-1.0.10-werror.patch
new file mode 100644
index 000000000..333b2b767
--- /dev/null
+++ b/sys-apps/evemu/files/evemu-1.0.10-werror.patch
@@ -0,0 +1,20 @@
+diff -u -r evemu-1.0.10-orig/configure.ac evemu-1.0.10/configure.ac
+--- evemu-1.0.10-orig/configure.ac 2013-01-03 14:39:47.816749652 -0600
++++ evemu-1.0.10/configure.ac 2013-01-03 15:40:16.566917042 -0600
+@@ -35,9 +35,14 @@
+ AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it])
+ fi
+
+-AC_SUBST(AM_CFLAGS,
+- "-Wall -Wextra -pedantic -Werror -std=gnu99 -D_GNU_SOURCE=1")
++AC_ARG_ENABLE([werror],
++ [AC_HELP_STRING([--disable-werror],
++ [build without gcc -Werror])],
++ [],
++ [WERROR="-Werror"])
+
++AC_SUBST(AM_CFLAGS,
++ "-Wall -Wextra -pedantic $WERROR -std=gnu99 -D_GNU_SOURCE=1")
+
+ AC_CONFIG_FILES([Makefile
+ src/Makefile