mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-01 22:28:02 +02:00
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@gnupg.org>
This commit is contained in:
parent
e417aaf698
commit
812fe29bff
11
configure.ac
11
configure.ac
|
@ -1665,6 +1665,17 @@ AC_ARG_ENABLE(optimization,
|
||||||
CFLAGS=`echo $CFLAGS | sed s/-O[[1-9]]\ /-O0\ /g`
|
CFLAGS=`echo $CFLAGS | sed s/-O[[1-9]]\ /-O0\ /g`
|
||||||
fi])
|
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
|
# Configure option --enable-all-tests
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue
Block a user