diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-19 02:15:09 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-19 02:15:09 +0800 |
commit | 85e032b504cc9a12affba776150df6908d84bea3 (patch) | |
tree | 0a892fb346a78231b165bd2e8082c8496530d169 /configure.in | |
parent | 71fb81afc7479b098fdd3e53c1525a8c6fd064dd (diff) | |
download | gsoc2013-evolution-85e032b504cc9a12affba776150df6908d84bea3.tar.gz 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
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
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" ]) |