summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-04-08 13:21:52 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-06-13 12:35:47 -0400
commit9bb1b4995b8825944531d495262a0bb049a45f3e (patch)
tree8966d560d58ef566ca03bae72139664619ee5679
parentbd71f657daa44b8e5fc416f6eb48e5bc8216e838 (diff)
config: remove redundant compiler flags
These are available using --enable-strict-compilation Use same configure option as all x.org modules Only GCC was covered, not SUNCC or INTELCC Introduced in commit 85397a4ef7a3a13f7e2940cb0e5c2fdbfea4c695 Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-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