summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2015-12-09 16:55:01 +1100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-12-17 09:37:24 +0000
commit7f585a6a98d0553ec0ba48e18b1d9bac1256881a (patch)
tree42b2a76487dbc136596c0b99245a34b8ea927144 /src/gallium/targets
parente97b207654a1c0b2c27b6ad6579b5570a83ce8cd (diff)
downloadexternal_mesa3d-7f585a6a98d0553ec0ba48e18b1d9bac1256881a.zip
external_mesa3d-7f585a6a98d0553ec0ba48e18b1d9bac1256881a.tar.gz
external_mesa3d-7f585a6a98d0553ec0ba48e18b1d9bac1256881a.tar.bz2
configure.ac: use pkg-config for libelf
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@jsg.id.au> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Tested-by: Michel Dänzer <michel.daenzer@amd.com> Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/opencl/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/targets/opencl/Makefile.am b/src/gallium/targets/opencl/Makefile.am
index 08f95e8..f3ba1e3 100644
--- a/src/gallium/targets/opencl/Makefile.am
+++ b/src/gallium/targets/opencl/Makefile.am
@@ -2,6 +2,9 @@ include $(top_srcdir)/src/gallium/Automake.inc
lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la
+AM_CPPFLAGS = \
+ $(LIBELF_CFLAGS)
+
lib@OPENCL_LIBNAME@_la_LDFLAGS = \
$(LLVM_LDFLAGS) \
-no-undefined \
@@ -19,7 +22,7 @@ lib@OPENCL_LIBNAME@_la_LIBADD = \
$(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(top_builddir)/src/util/libmesautil.la \
- $(ELF_LIB) \
+ $(LIBELF_LIBS) \
$(DLOPEN_LIBS) \
-lclangCodeGen \
-lclangFrontendTool \