Recent change to use drmGetDevices2() made me realize that
build configured using

PKG_CONFIG_PATH=my_drm_lib_path/pkgconfig ./

considers the libdrm path gotten from pkgconfig only during
make. When invoking "make install" the relink command puts
system library ahead of the path gotten from pkgconfig
(and starts to fail as system libdrm isn't new enough).

This change forces the relink command to respect pkgconfig

It looks to me that in

Emil et al are discussing similar case with gbm.

CC: Matt Turner <>
CC: Emil Velikov <>
Signed-off-by: Topi Pohjolainen <>
 src/glx/ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glx/ b/src/glx/
index 79d416a..ced5227 100644
--- a/src/glx/
+++ b/src/glx/
@@ -175,6 +175,7 @@ GL_LIB_VERSION=1:2
 GL_LIBS = \
+       $(LIBDRM_LIBS) \ \
        $(top_builddir)/src/mapi/glapi/ \
        $(SHARED_GLAPI_LIB) \

mesa-dev mailing list

Reply via email to