summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-28 11:44:47 -0600
committerBrian Paul <[email protected]>2008-05-28 11:44:47 -0600
commitaa4ca9119d1dbaf542cf5971f845b434ef008aa0 (patch)
tree4875855f07e0a8d56dcc196eebbdad94d261c02d /src/egl
parent95c917f7dd6e837cb1b280be617a795dd57c9f13 (diff)
link libEGLdri.so with libdrm
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/egl/drivers/dri/Makefile b/src/egl/drivers/dri/Makefile
index 13aacd4389c..bdc683a0c16 100644
--- a/src/egl/drivers/dri/Makefile
+++ b/src/egl/drivers/dri/Makefile
@@ -29,6 +29,8 @@ SOURCES = egldri.c
OBJECTS = $(SOURCES:.c=.o)
+DRM_LIB = `pkg-config --libs libdrm`
+
.c.o:
$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
@@ -43,7 +45,7 @@ library: $(TOP)/$(LIB_DIR)/libEGLdri.so
$(TOP)/$(LIB_DIR)/libEGLdri.so: $(OBJECTS)
$(TOP)/bin/mklib -o EGLdri -major 1 -minor 0 \
- -install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS)
+ -install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS) $(DRM_LIB)
clean: