From 16707d1c7eb2a7e182b5ed1f4b1f38f746a73b1a Mon Sep 17 00:00:00 2001 From: jacob Date: Sun, 30 Aug 2009 13:16:50 +0000 Subject: [PATCH] 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 . git-svn-id: svn://svn.tartarus.org/sgt/putty@8638 cda61777-01e9-0310-a592-d414129be87e --- mkfiles.pl | 3 ++- unix/configure.ac | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mkfiles.pl b/mkfiles.pl index 75cb538b..9466ffec 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -1078,7 +1078,8 @@ if (defined $makefiles{'ac'}) { "\n". "CC = \@CC\@\n". "\n". - &splitline("CFLAGS = \@CFLAGS\@ \@CPPFLAGS\@ \@DEFS\@ \@GTK_CFLAGS\@ " . + &splitline("CFLAGS = \@CFLAGS\@ \@PUTTYCFLAGS\@ \@CPPFLAGS\@ " . + "\@DEFS\@ \@GTK_CFLAGS\@ " . (join " ", map {"-I$dirpfx$_"} @srcdirs))."\n". "XLDFLAGS = \@LDFLAGS\@ \@LIBS\@ \@GTK_LIBS\@\n". "ULDFLAGS = \@LDFLAGS\@ \@LIBS\@\n". diff --git a/unix/configure.ac b/unix/configure.ac index fc16350c..dcbc1535 100644 --- a/unix/configure.ac +++ b/unix/configure.ac @@ -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]) -- 2.11.0