st/clover: Add libelf cflags to the build
authorKoop Mast <kwm@rainbow-runner.nl>
Mon, 28 Dec 2015 19:26:48 +0000 (20:26 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 29 Feb 2016 11:30:15 +0000 (11:30 +0000)
Otherwise the build will fail, when the library is in a non default
location.

v2 [Emil Velikov]
 - drop the unneeded cflags from targets/opencl.

Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Fixes: 7f585a6a98d "configure.ac: use pkg-config for libelf"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93524
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/state_trackers/clover/Makefile.am
src/gallium/targets/opencl/Makefile.am

index 3c9421692fc00a4306c9269a62a591972de243eb..4c9d7d9b7beccdb8f4784f0f02c4271ec9ba9a8c 100644 (file)
@@ -41,6 +41,7 @@ libclllvm_la_CXXFLAGS = \
        $(VISIBILITY_CXXFLAGS) \
        $(LLVM_CXXFLAGS) \
        $(DEFINES) \
+       $(LIBELF_CFLAGS) \
        -DLIBCLC_INCLUDEDIR=\"$(LIBCLC_INCLUDEDIR)/\" \
        -DLIBCLC_LIBEXECDIR=\"$(LIBCLC_LIBEXECDIR)/\" \
        -DCLANG_RESOURCE_DIR=\"$(CLANG_RESOURCE_DIR)\"
index f3ba1e32d1bd1802df56d80166075ba1a1b115f2..99532f06d8123996500efe6f0c8edb8acdaa5c62 100644 (file)
@@ -2,9 +2,6 @@ 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 \