path: root/src/glx
diff options
authorTopi Pohjolainen <>2017-03-23 12:27:40 +0000
committerEmil Velikov <>2017-03-23 12:30:19 +0000
commit90633079eccdc7b883b712695c057553d484405f (patch)
treefd7e78800c6c21b03d325b9c463e8f7dea7c0017 /src/glx
parent4f69573178dabe53e0f761b3f1e512658d71af98 (diff)
glx: Prefer library path given by pkgconfig over the system
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 settings. It looks to me that in with Emil et al considering it a libtool bug. Signed-off-by: Topi Pohjolainen <> [Emil Velikov: add inline comment] Signed-off-by: Emil Velikov <>
Diffstat (limited to 'src/glx')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glx/ b/src/glx/
index 79d416abcad..5c0376408cc 100644
--- a/src/glx/
+++ b/src/glx/
@@ -174,7 +174,10 @@ AM_CFLAGS += \
+# Push the libdrm furhter up, as due to libtool bug we might end up relinking
+# against the system one.
+ $(LIBDRM_LIBS) \ \
$(top_builddir)/src/mapi/glapi/ \