summaryrefslogtreecommitdiff
path: root/configs/linux-dri
diff options
context:
space:
mode:
Diffstat (limited to 'configs/linux-dri')
-rw-r--r--configs/linux-dri8
1 files changed, 5 insertions, 3 deletions
diff --git a/configs/linux-dri b/configs/linux-dri
index 9817a0e762..293f2e789d 100644
--- a/configs/linux-dri
+++ b/configs/linux-dri
@@ -38,8 +38,10 @@ ASM_SOURCES =
# Library/program dependencies
EXTRA_LIB_PATH=-L/usr/X11R6/lib
-DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl
-GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl
+LIBDRM_LIB = `pkg-config --libs libdrm` -ldrm
+DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
+GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
+ $(LIBDRM_LIB)
# This is now 0 by default since it seems to confuse the hell out of people
@@ -62,5 +64,5 @@ WINDOW_SYSTEM=dri
# gamma are missing because they have not been converted to use the new
# interface.
-DRI_DIRS = dri_client i810 i830 i915 mach64 mga r128 r200 r300 radeon s3v \
+DRI_DIRS = i810 i830 i915 mach64 mga r128 r200 r300 radeon s3v \
savage sis tdfx trident unichrome ffb