summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-08 15:01:43 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-08 15:01:43 -0800
commit96a44413d2d3affe3947ae0b861982d69539598c (patch)
treef5f10158301aa66decfa4c7771ffdbcab31f633f
parentd84143baf5631873146acf93951fa3660be540e2 (diff)
Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-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 cceccb5..be1df2d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,10 +42,6 @@ XORG_DEFAULT_OPTIONS
# Initialize libtool
LT_INIT([disable-static])
-if test "x$GCC" = "xyes"; then
- CPPFLAGS="$CPPFLAGS -Wall"
-fi
-
AH_TOP([#include "xorg-server.h"])
# Define a configure option for an alternate module directory
diff --git a/src/Makefile.am b/src/Makefile.am
index 45aafb5..2cce2a4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -36,7 +36,7 @@ R128_EXA_SRCS = \
r128_exa_render.c
endif
-AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@
+AM_CFLAGS = $(BASE_CFLAGS) $(XORG_CFLAGS) $(DRI_CFLAGS)
r128_drv_la_LTLIBRARIES = r128_drv.la
r128_drv_la_LDFLAGS = -module -avoid-version