configure.ac: only link against libraries from LLVM analysis component
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 18 Jan 2012 15:47:38 +0000 (16:47 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 18 Jan 2012 18:12:02 +0000 (19:12 +0100)
Before, we would link against all LLVM components, which would make
us depend on google-test.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
configure.ac

index 0a984f8..e45ceb8 100644 (file)
@@ -113,7 +113,7 @@ system)
        fi
        CLANG_CXXFLAGS=`$llvm_config --cxxflags`
        CLANG_LDFLAGS=`$llvm_config --ldflags`
-       CLANG_LIBS=`$llvm_config --libs`
+       CLANG_LIBS=`$llvm_config --libs analysis`
        CLANG_PREFIX=`$llvm_config --prefix`
        AC_DEFINE_UNQUOTED(CLANG_PREFIX, ["$CLANG_PREFIX"],
                                [Clang installation prefix])