gallium: Respect user's CFLAGS for including X headers
authorDan Nicholson <dbn.lists@gmail.com>
Sat, 13 Mar 2010 19:56:59 +0000 (11:56 -0800)
committerDan Nicholson <dbn.lists@gmail.com>
Sat, 13 Mar 2010 19:56:59 +0000 (11:56 -0800)
This can break on systems that don't have a system X installation.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
src/gallium/state_trackers/glx/xlib/Makefile
src/gallium/winsys/xlib/Makefile

index 7b2adc62c34d87fcbdde1886a0f6f680a739c82b..8c7cc524dfc393e07441b1ba2059ed5bfce12da0 100644 (file)
@@ -5,7 +5,8 @@ LIBNAME = xlib
 
 LIBRARY_INCLUDES = \
        -I$(TOP)/include \
-       -I$(TOP)/src/mesa
+       -I$(TOP)/src/mesa \
+       $(X_CFLAGS)
 
 C_SOURCES = \
        glx_api.c \
index 68542b488df25f3e59bc1a9f9e9e41518d092394..18357a411278133f4282ad5aa3518f32f66a502d 100644 (file)
@@ -6,7 +6,8 @@ LIBNAME = ws_xlib
 LIBRARY_INCLUDES = \
        -I$(TOP)/src/gallium/include \
        -I$(TOP)/src/gallium/drivers \
-       -I$(TOP)/src/gallium/auxiliary
+       -I$(TOP)/src/gallium/auxiliary \
+       $(X_CFLAGS)
 
 C_SOURCES = \
        xlib_sw_winsys.c