mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
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 ./autogen.sh 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 https://bugs.freedesktop.org/show_bug.cgi?id=100259 with Emil et al considering it a libtool bug. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> [Emil Velikov: add inline comment] Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
4f69573178
commit
90633079ec
1 changed files with 3 additions and 0 deletions
|
|
@ -174,7 +174,10 @@ AM_CFLAGS += \
|
|||
GL_LIB_VERSION=1:2
|
||||
endif
|
||||
|
||||
# Push the libdrm furhter up, as due to libtool bug we might end up relinking
|
||||
# against the system one.
|
||||
GL_LIBS = \
|
||||
$(LIBDRM_LIBS) \
|
||||
libglx.la \
|
||||
$(top_builddir)/src/mapi/glapi/libglapi.la \
|
||||
$(SHARED_GLAPI_LIB) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue