[Mesa-dev] [RFC] glx: Prefer library path given by pkgconfig over the system

Grazvydas Ignotas notasas at gmail.com
Mon Mar 20 10:27:54 UTC 2017


On Mon, Mar 20, 2017 at 11:28 AM, Topi Pohjolainen
<topi.pohjolainen at gmail.com> wrote:
> 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.

Nice, this issue is really annoying, and using Emil's workarounds from
bug 100259 is cumbersome.
Tested-by: Grazvydas Ignotas <notasas at gmail.com>

>
> It looks to me that in
>
> https://bugs.freedesktop.org/show_bug.cgi?id=100259
>
> Emil et al are discussing similar case with gbm.
>
> CC: Matt Turner <mattst88 at gmail.com>
> CC: Emil Velikov <emil.velikov at collabora.com>
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
>  src/glx/Makefile.am | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am
> index 79d416a..ced5227 100644
> --- a/src/glx/Makefile.am
> +++ b/src/glx/Makefile.am
> @@ -175,6 +175,7 @@ GL_LIB_VERSION=1:2
>  endif
>
>  GL_LIBS = \
> +       $(LIBDRM_LIBS) \
>         libglx.la \
>         $(top_builddir)/src/mapi/glapi/libglapi.la \
>         $(SHARED_GLAPI_LIB) \
> --
> 2.9.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list