[PATCH:libXtst 1/2] Move -I flags from AM_CFLAGS to AM_CPPFLAGS

Alan Coopersmith alan.coopersmith at oracle.com
Tue Apr 24 15:20:53 PDT 2012


Ensures local copy of headers takes precedence over any -I flags the
builder may have passed in CPPFLAGS.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/Makefile.am |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 1091ece..67bf36e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,9 +6,11 @@ libXtst_la_SOURCES = \
 
 libXtst_la_LIBADD = @XTST_LIBS@
 
-AM_CFLAGS = \
+AM_CPPFLAGS = \
 	-I$(top_srcdir)/include \
-	-I$(top_srcdir)/include/X11/extensions \
+	-I$(top_srcdir)/include/X11/extensions
+
+AM_CFLAGS = \
 	$(XTST_CFLAGS) \
 	$(CWARNFLAGS)
 
-- 
1.7.9.2



More information about the xorg-devel mailing list