--- a/configure.ac 2011-07-18 11:48:14.000000000 +0200 +++ b/configure.ac 2011-07-18 12:28:21.524756469 +0200 @@ -1824,7 +1824,7 @@ if test "x$enable_gallium_llvm" = xyes; if test "x$LLVM_CONFIG" != xno; then LLVM_VERSION=`$LLVM_CONFIG --version` LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed 's/-DNDEBUG\>//g'` - LLVM_LIBS="`$LLVM_CONFIG --libs` -lstdc++" + LLVM_LIBS="-lLLVM-`$LLVM_CONFIG --version` -lstdc++" LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags` DEFINES="$DEFINES -D__STDC_CONSTANT_MACROS"