From: Niels Ole Salscheider Date: Thu, 4 Apr 2013 21:26:45 +0000 (+0200) Subject: clover: Fix linkage of libOpenCL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b336f51cc72a3290b39ead5c76ca36156562c0bd;p=mesa.git clover: Fix linkage of libOpenCL Clover needs the irreader component of llvm v2: Check for irreader component irreader is only available with LLVM 3.3 >= 177971 Reviewed-by: Tom Stellard Signed-off-by: Niels Ole Salscheider --- diff --git a/configure.ac b/configure.ac index 81d4a3f3ea3..fea586845a6 100644 --- a/configure.ac +++ b/configure.ac @@ -1650,6 +1650,10 @@ if test "x$enable_gallium_llvm" = xyes; then if test "x$enable_opencl" = xyes; then LLVM_COMPONENTS="${LLVM_COMPONENTS} ipo linker instrumentation" + # LLVM 3.3 >= 177971 requires IRReader + if $LLVM_CONFIG --components | grep -q '\'; then + LLVM_COMPONENTS="${LLVM_COMPONENTS} irreader" + fi fi LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags` LLVM_BINDIR=`$LLVM_CONFIG --bindir`