aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--configure.in3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 51b8a2a109..381a39975f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-07-18 Ettore Perazzoli <ettore@ximian.com>
+
+ * configure.in: Prepend "$(WERROR)" to all the *_CFLAGS variables
+ so you can do `make WERROR=-Werror' to turn all compiler warnings
+ into errors.
+
2002-07-09 Peter Williams <peterw@ximian.com>
* libversit/Makefile.am (privlib_LIBRARIES): Install libversit.a so
diff --git a/configure.in b/configure.in
index 8cd64843ce..60a1bfe8e4 100644
--- a/configure.in
+++ b/configure.in
@@ -1039,11 +1039,12 @@ dnl *************************
dnl CFLAGS and LIBS and stuff
dnl *************************
+dnl Utility macro to set compiler flags for a specific lib.
AC_DEFUN(EVO_SET_COMPILE_FLAGS, [
deps="$2"
extra_cflags="$3"
extra_libs="$4"
- $1_CFLAGS="`gnome-config --cflags $deps` $extra_cflags"
+ $1_CFLAGS="\$(WERROR) `gnome-config --cflags $deps` $extra_cflags"
$1_LIBS="`gnome-config --libs $deps` $extra_libs"
])