build: Enable configure --enable-werror

This passes -Werror to gcc when building curl and libcurl,
  allowing easy dection of compile warnings.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear 2010-07-19 18:07:09 +02:00 committed by Daniel Stenberg
parent 40ecd6c9b8
commit d6981cb508
4 changed files with 45 additions and 0 deletions

View file

@ -46,6 +46,9 @@ bin_PROGRAMS = curl
include Makefile.inc
# This might hold -Werror
CFLAGS += @CURL_CFLAG_EXTRAS@
curl_LDADD = $(top_builddir)/lib/libcurl.la @CURL_LIBS@
curl_DEPENDENCIES = $(top_builddir)/lib/libcurl.la
BUILT_SOURCES = hugehelp.c