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
commit9388d4661a6e7da03f0a5325a7fe96039fbf2b20 (patch)
tree72d993d49dc71eff4664a938a35a58bace573d08
parent97cb7b01d5628c8b36769816bbc956a8b0c94980 (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 d57ed06..a1d017d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,7 +21,7 @@
bin_PROGRAMS = xstdcmap
-AM_CFLAGS = $(XSTDCMAP_CFLAGS) -D_BSD_SOURCE
+AM_CFLAGS = $(XSTDCMAP_CFLAGS) -D_BSD_SOURCE $(CWARNFLAGS)
xstdcmap_LDADD = $(XSTDCMAP_LIBS)
xstdcmap_SOURCES = \
diff --git a/configure.ac b/configure.ac
index fbfdfc6..69ed260 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,6 @@ AC_PROG_INSTALL
# Checks for pkg-config packages
PKG_CHECK_MODULES(XSTDCMAP, xmu x11)
-XSTDCMAP_CFLAGS="$CWARNFLAGS $XSTDCMAP_CFLAGS"
AC_SUBST(XSTDCMAP_CFLAGS)
AC_SUBST(XSTDCMAP_LIBS)