[Pkg-gnupg-commit] [gnupg2] 21/49: build: New configure option --enable-werror

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Nov 8 19:30:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 812fe29bff42cf7dbd07e0becc55b2ada340dd97
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Oct 24 18:42:37 2017 +0200

    build: New configure option --enable-werror
    
    * configure.ac: Implement that option.
    --
    
    This can be used as a workaround in case of bogus autoconf tests.
    
    GnuPG-bug-id: 2423
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 configure.ac | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/configure.ac b/configure.ac
index 1f933a7..551c970 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1666,6 +1666,17 @@ AC_ARG_ENABLE(optimization,
                    fi])
 
 #
+# Add -Werror to CFLAGS.  This hack can be used to avoid problems with
+# misbehaving autoconf tests in case the user supplied -Werror.
+#
+AC_ARG_ENABLE(werror,
+   AC_HELP_STRING([--enable-werror],
+                  [append -Werror to CFLAGS]),
+                  [if test $enableval = yes ; then
+                      CFLAGS="$CFLAGS -Werror"
+                   fi])
+
+#
 # Configure option --enable-all-tests
 #
 AC_MSG_CHECKING([whether "make check" shall run all tests])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list