Mesa (master): glx: fix compile error in egl_glx.c.

Kenneth Graunke kwg at kemper.freedesktop.org
Thu Sep 19 17:49:51 UTC 2013


Module: Mesa
Branch: master
Commit: 092f2e83365c75d56f593400b38d51909bea56f4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=092f2e83365c75d56f593400b38d51909bea56f4

Author: Gaetan Nadon <memsize at videotron.ca>
Date:   Tue Sep 17 15:46:09 2013 -0400

glx: fix compile error in egl_glx.c.

egl_glx.c:40:22: fatal error: X11/Xlib.h: No such file or directory

The compiler cannot find the Xlib.h in the installed system headers.
All supplied include directives point to inside the mesa module.
The X11_CFLAGS variable is undefined (not defined in config.status).

It appears the intent was to use X11_INCLUDES defined in configure.ac.

The Xlib.h file is not installed on my workstation. It is supplied in
the libx11-dev package. This allows an X developer control over which
version of this file is used for X development.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/egl/drivers/glx/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/egl/drivers/glx/Makefile.am b/src/egl/drivers/glx/Makefile.am
index 6db95b4..5dd5228 100644
--- a/src/egl/drivers/glx/Makefile.am
+++ b/src/egl/drivers/glx/Makefile.am
@@ -23,7 +23,7 @@ AM_CFLAGS = \
 	-I$(top_srcdir)/include \
 	-I$(top_srcdir)/src/egl/main \
 	$(VISIBILITY_CFLAGS) \
-	$(X11_CFLAGS) \
+	$(X11_INCLUDES) \
 	$(DEFINES)
 
 noinst_LTLIBRARIES = libegl_glx.la




More information about the mesa-commit mailing list