aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-07-19 02:15:09 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-07-19 02:15:09 +0800
commit85e032b504cc9a12affba776150df6908d84bea3 (patch)
tree0a892fb346a78231b165bd2e8082c8496530d169
parent71fb81afc7479b098fdd3e53c1525a8c6fd064dd (diff)
downloadgsoc2013-evolution-85e032b504cc9a12affba776150df6908d84bea3.tar
gsoc2013-evolution-85e032b504cc9a12affba776150df6908d84bea3.tar.gz
gsoc2013-evolution-85e032b504cc9a12affba776150df6908d84bea3.tar.bz2
gsoc2013-evolution-85e032b504cc9a12affba776150df6908d84bea3.tar.lz
gsoc2013-evolution-85e032b504cc9a12affba776150df6908d84bea3.tar.xz
gsoc2013-evolution-85e032b504cc9a12affba776150df6908d84bea3.tar.zst
gsoc2013-evolution-85e032b504cc9a12affba776150df6908d84bea3.zip
Prepend "$(WERROR)" to all the *_CFLAGS variables
so you can do `make WERROR=-Werror' to turn all compiler warnings into errors. svn path=/trunk/; revision=17509
-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"
])