[Mesa-dev] [Mesa-stable] [PATCH v2] configure.ac: use pkg-config for libelf

Emil Velikov emil.l.velikov at gmail.com
Wed Dec 9 03:17:31 PST 2015


On 9 December 2015 at 05:55, Jonathan Gray <jsg at jsg.id.au> wrote:
> Use PKG_CHECK_MODULES to get the flags to link libelf
>
> v2: keep AC_CHECK_LIB as a fallback for elfutils provided
> libelf that doesn't install a pkg-config file.
>
> Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
> Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
> Tested-by: Michel Dänzer <michel.daenzer at amd.com>
> Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
> ---
>  configure.ac                           | 12 +++++++++---
>  src/gallium/drivers/radeon/Makefile.am |  5 +++--
>  src/gallium/targets/opencl/Makefile.am |  5 ++++-
>  3 files changed, 16 insertions(+), 6 deletions(-)
>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

François, this should allow you guys to remove these nasty workarounds
[1]. Prior you only needed them for opencl or when r600/radeonsi was
selected (be that dri, d3dadapter or any of the video backend drivers)

-Emil

[1] http://gitweb.dragonflybsd.org/dports.git/blob/HEAD:/graphics/libosmesa/Makefile.DragonFly


More information about the mesa-dev mailing list