summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--src/Makefile.am2
2 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 9daadc6..51376c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,10 +45,6 @@ AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_PROG_CC
-if test "x$GCC" = "xyes"; then
- CFLAGS="$CFLAGS -Wall -pedantic"
-fi
-
AH_TOP([#include "xorg-server.h"])
AC_ARG_WITH(xorg-module-dir,
diff --git a/src/Makefile.am b/src/Makefile.am
index 114f8e9..bf3a03a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,7 +23,7 @@
# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
# _ladir passes a dummy rpath to libtool so the thing will actually link
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = @XORG_CFLAGS@
+AM_CFLAGS = $(XORG_CFLAGS) $(CWARNFLAGS)
tseng_drv_la_LTLIBRARIES = tseng_drv.la
tseng_drv_la_LDFLAGS = -module -avoid-version
tseng_drv_ladir = @moduledir@/drivers