From: Dima Zavin Date: Thu, 21 Aug 2008 17:40:55 +0000 (-0700) Subject: egl_dri/egl_xdri: Makefiles should use pkg-config to find libdrm. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=912488a8d016834349273acac88be85a6afadcc0;p=mesa.git egl_dri/egl_xdri: Makefiles should use pkg-config to find libdrm. --- diff --git a/src/egl/drivers/dri/Makefile b/src/egl/drivers/dri/Makefile index bdc683a0c16..a41aca43709 100644 --- a/src/egl/drivers/dri/Makefile +++ b/src/egl/drivers/dri/Makefile @@ -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 \ diff --git a/src/egl/drivers/xdri/Makefile b/src/egl/drivers/xdri/Makefile index 252d00b6c22..9a2b7e0a9d8 100644 --- a/src/egl/drivers/xdri/Makefile +++ b/src/egl/drivers/xdri/Makefile @@ -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 \