From 131c80ac6b199988b08df26f30dabe1c7ba9684a Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Sun, 26 Feb 2012 16:36:55 -0500 Subject: examples/test.cpp: fatal error: X11/Xlib.h: No such file or directory Need XSERVER_CFLAGS to locate Xlib.h Signed-off-by: Gaetan Nadon --- examples/Makefile.am | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/Makefile.am b/examples/Makefile.am index 5f57519..7076623 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -22,10 +22,8 @@ noinst_PROGRAMS = xorg-gtest-example xorg_gtest_example_SOURCES = xorg-gtest.cpp -xorg_gtest_example_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - $(GTEST_CPPFLAGS) \ - -I$(top_srcdir)/include +AM_CPPFLAGS = -I$(top_srcdir)/include +AM_CXXFLAGS = $(XSERVER_CFLAGS) $(GTEST_CPPFLAGS) xorg_gtest_example_LDADD = $(top_builddir)/src/libxorg-gtest.la $(top_builddir)/src/libxorg-gtest_main.la -lgtest -lpthread -lX11 -- cgit v1.2.3