1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 11:02:48 -05:00

Avoid compiling autoconf test programs with -Wall -Werror; doing so causes

trouble on Ubuntu, where the Gtk test programs don't check the return value
from system() and thus fall foul of the combination of our -Werror and
<https://wiki.ubuntu.com/CompilerFlags#-D_FORTIFY_SOURCE=2>.

[originally from svn r8638]
This commit is contained in:
Jacob Nevins
2009-08-30 13:16:50 +00:00
parent adc8a2ca9d
commit b802ee0c16
2 changed files with 6 additions and 2 deletions

View File

@ -11,8 +11,11 @@ AC_CONFIG_HEADERS([uxconfig.h:uxconfig.in])
AC_PROG_INSTALL
AC_PROG_CC
if test "X$GCC" = Xyes; then
CFLAGS="$CFLAGS -Wall -Werror"
PUTTYCFLAGS="-Wall -Werror"
else
PUTTYCFLAGS=""
fi
AC_SUBST(PUTTYCFLAGS)
AC_ARG_WITH(gssapi,
[ --without-gssapi disable GSS-API support])