egl: Pass flags to locate Xlib headers and libraries
authorDan Nicholson <dbn.lists@gmail.com>
Sun, 18 Apr 2010 16:33:03 +0000 (09:33 -0700)
committerDan Nicholson <dbn.lists@gmail.com>
Tue, 20 Apr 2010 03:21:57 +0000 (20:21 -0700)
eglplatform.h pulls in Xlib.h on X11 platforms. Likewise, the egl glx
driver and egl programs needs to link to libX11. Make sure we use the
locations the user told us about.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
progs/egl/Makefile
src/egl/drivers/glx/Makefile
src/egl/main/Makefile
src/gallium/state_trackers/egl/Makefile

index 8dfcb4eabcbd1c1892ce6714dd23f9ed7e388219..fe490c2f8ea7dd8a5bb533d6745068e5ccdafbc3 100644 (file)
@@ -4,7 +4,7 @@ TOP = ../..
 include $(TOP)/configs/current
 
 
-INCLUDE_DIRS = -I$(TOP)/include
+INCLUDE_DIRS = -I$(TOP)/include $(X11_CFLAGS)
 
 HEADERS = $(TOP)/include/GLES/egl.h
 LIB_DEP = $(TOP)/$(LIB_DIR)/libEGL.so
index 634638f5387a11cdea55f2a0443a186325c5da5a..d976b91a74ebb45610942ac2de2943a4e67e2ff5 100644 (file)
@@ -10,7 +10,7 @@ EGL_INCLUDES = \
        -I$(TOP)/include \
        -I$(TOP)/src/egl/main
 
-EGL_CFLAGS =
-EGL_LIBS = -lX11 -lGL
+EGL_CFLAGS = $(X11_CFLAGS)
+EGL_LIBS = $(X11_LIBS) -lGL
 
 include ../Makefile.template
index 31f214cf6f218db18c16ce16004a40149d603014..3b4ebf7fec4eb6a6b474a3e33fa8aaf44a9a9007 100644 (file)
@@ -7,7 +7,7 @@ include $(TOP)/configs/current
 EGL_MAJOR = 1
 EGL_MINOR = 0
 
-INCLUDE_DIRS = -I$(TOP)/include
+INCLUDE_DIRS = -I$(TOP)/include $(X11_CFLAGS)
 
 HEADERS = \
        eglcompiler.h \
index 794785006f5781f66c37c303e74d028556355f02..1768241352f0a7c7aedad70b2010baa9cdfa9287 100644 (file)
@@ -16,6 +16,7 @@ x11_INCLUDES = \
        -I$(TOP)/src/gallium/drivers \
        -I$(TOP)/src/glx \
        -I$(TOP)/src/mesa \
+       $(X11_CFLAGS) \
        $(shell pkg-config --cflags-only-I libdrm)
 
 x11_SOURCES = $(wildcard x11/*.c) \