summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-06 09:13:22 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-06 09:13:22 -0800
commit3010ffc8ec8e989a2b6a258b25ae1ef6112e601f (patch)
treebc508b44aafda7f173cbd2fda8b8acb6f4374173
parenta4a96b580db669f13fb97b87622a5256025e3444 (diff)
Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/Makefile.am2
-rw-r--r--util/Makefile.am2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 473df17..67bbf21 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -32,7 +32,7 @@ libct_accelhi_la_CFLAGS = @XORG_CFLAGS@ -DCHIPS_MMIO -DCHIPS_HIQV
# -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 = $(BASE_CFLAGS) $(XORG_CFLAGS)
chips_drv_la_LTLIBRARIES = chips_drv.la
chips_drv_la_LDFLAGS = -module -avoid-version
chips_drv_ladir = @moduledir@/drivers
diff --git a/util/Makefile.am b/util/Makefile.am
index 4ae900b..3b3feed 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -1,3 +1,5 @@
+AM_CFLAGS = $(BASE_CFLAGS)
+
# these are not even built in the monolith, so don't install them
if BUILD_UTILS
noinst_PROGRAMS = dRegs mRegs modClock memClock