From 64f7bb1bf5ec65b8822041371ca84de0f0853cda Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 7 Feb 2014 14:50:28 +0100 Subject: [PATCH] configure.ac: add llvm-config --system-libs to CLANG_LIBS Recent versions of llvm-config split off the --system-libs from the --ldflags. Curiously, llvm-config --system-libs first prints a line with only spaces, so we need to pick up the last line from the output. Signed-off-by: Sven Verdoolaege --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index b051f36..8ac9063 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,10 @@ if test $? -eq 0; then components="$components option" fi CLANG_LIBS=`$llvm_config --libs $components` +systemlibs=`$llvm_config --system-libs 2> /dev/null | tail -1` +if test $? -eq 0; then + CLANG_LIBS="$CLANG_LIBS $systemlibs" +fi CLANG_PREFIX=`$llvm_config --prefix` AC_DEFINE_UNQUOTED(CLANG_PREFIX, ["$CLANG_PREFIX"], [Clang installation prefix]) -- 2.11.4.GIT