From 96a44413d2d3affe3947ae0b861982d69539598c Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 8 Jan 2024 15:01:43 -0800 Subject: [PATCH] Add X.Org's standard C warning flags to AM_CFLAGS Signed-off-by: Alan Coopersmith --- configure.ac | 4 ---- src/Makefile.am | 2 +- 2 files changed, 1 insertion(+), 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