summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-02-11 10:08:07 -0500
committerGaetan Nadon <memsize@videotron.ca>2010-02-11 10:08:07 -0500
commit43cc7e22101f5ad39cb3bd9680c589891b4a4006 (patch)
tree26c890de45100e9e71c7e15474a1c9d0f22c8757
parent9b597fa087f277a63b640b184ea113bf6d0fd112 (diff)
config: move CWARNFLAGS from configure.ac to Makefile.am
Compiler warning flags should be explicitly set in the makefile rather than being merged with other packages compiler flags. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac1
2 files changed, 1 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 1234aa3..d999565 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,7 +21,7 @@
bin_PROGRAMS = xsetmode
-AM_CFLAGS = $(XSETMODE_CFLAGS)
+AM_CFLAGS = $(XSETMODE_CFLAGS) $(CWARNFLAGS)
xsetmode_LDADD = $(XSETMODE_LIBS)
xsetmode_SOURCES = \
diff --git a/configure.ac b/configure.ac
index e297970..eb86069 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,6 @@ AC_PROG_INSTALL
# Checks for pkg-config packages
PKG_CHECK_MODULES(XSETMODE, xi x11)
-XSETMODE_CFLAGS="$CWARNFLAGS $XSETMODE_CFLAGS"
AC_SUBST(XSETMODE_CFLAGS)
AC_SUBST(XSETMODE_LIBS)