]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: force -Werror for distcheck target
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 7 Oct 2019 13:03:47 +0000 (14:03 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 7 Oct 2019 14:50:57 +0000 (15:50 +0100)
The 'make distcheck' target validates that a tarball builds and
is ready for release. We expect that libvirt builds cleanly on
all supported platforms, so we should be enabling -Werror when
running distcheck.

This ensures that our CI systems in turn also use -Werror.

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Makefile.am

index 2cc4b91f9c456002b316270af5c966d27cfa5aaf..1a9f3af66d27971a851ab68374c41b7f7bd66131 100644 (file)
 LCOV = lcov
 GENHTML = genhtml
 
+# when building from tarball -Werror isn't auto enabled
+# so force it explicitly
+DISTCHECK_CONFIGURE_FLAGS = --enable-werror
+
 SUBDIRS = . gnulib/lib include/libvirt src tools docs gnulib/tests \
   tests po examples