egl_dri/egl_xdri: Makefiles should use pkg-config to find libdrm.
authorDima Zavin <dmitriyz@google.com>
Thu, 21 Aug 2008 17:40:55 +0000 (10:40 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 11 Sep 2008 17:43:56 +0000 (11:43 -0600)
src/egl/drivers/dri/Makefile
src/egl/drivers/xdri/Makefile

index bdc683a0c160aef81ae67be15496cc6043fc1523..a41aca43709ff4a40c0b16f3ff56e53c4c293cc5 100644 (file)
@@ -8,7 +8,7 @@ include $(TOP)/configs/current
 INCLUDE_DIRS = \
        -I. \
        -I/usr/include \
-       -I/usr/include/drm \
+       $(shell pkg-config --cflags-only-I libdrm) \
        -I$(TOP)/include \
        -I$(TOP)/include/GL/internal \
        -I$(TOP)/src/mesa \
index 252d00b6c221e6ef58d0ee314ae15de05e8420f5..9a2b7e0a9d80331ed7aa97e8b32b10cd0dd7ebc2 100644 (file)
@@ -13,7 +13,7 @@ DRIVER_NAME = egl_xdri.so
 INCLUDE_DIRS = \
        -I. \
        -I/usr/include \
-       -I/usr/include/drm \
+       $(shell pkg-config --cflags-only-I libdrm) \
        -I$(TOP)/include \
        -I$(TOP)/include/GL/internal \
        -I$(TOP)/src/mesa/glapi \