Mesa (master): clover: Fix linkage of libOpenCL

Tom Stellard tstellar at kemper.freedesktop.org
Sat Aug 17 00:04:09 UTC 2013


Module: Mesa
Branch: master
Commit: 5394ee8f30452ae201b1e35e579aa6edcd991cee
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5394ee8f30452ae201b1e35e579aa6edcd991cee

Author: Niels Ole Salscheider <niels_ole at salscheider-online.de>
Date:   Wed Aug  7 17:48:48 2013 +0200

clover: Fix linkage of libOpenCL

Clover needs the option component of llvm.

Reviewed-by: Tom Stellard <tom at stellard.net>
Signed-off-by: Niels Ole Salscheider <niels_ole at salscheider-online.de>

---

 configure.ac |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 62d06e0..0dcd2a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1617,6 +1617,10 @@ if test "x$enable_gallium_llvm" = xyes; then
             if $LLVM_CONFIG --components | grep -qw 'irreader'; then
                 LLVM_COMPONENTS="${LLVM_COMPONENTS} irreader"
             fi
+            # LLVM 3.4 requires Option
+            if $LLVM_CONFIG --components | grep -qw 'option'; then
+                LLVM_COMPONENTS="${LLVM_COMPONENTS} option"
+            fi
         fi
         DEFINES="${DEFINES} -DHAVE_LLVM=0x0$LLVM_VERSION_INT"
         MESA_LLVM=1




More information about the mesa-commit mailing list