--- a/configure.ac 2011-04-26 11:57:08.332737002 +0200 +++ b/configure.ac 2011-05-01 17:41:33.460135165 +0200 @@ -1700,7 +1700,7 @@ if test "x$LLVM_CONFIG" != xno; then LLVM_VERSION=`$LLVM_CONFIG --version` LLVM_CFLAGS=`$LLVM_CONFIG --cppflags` - LLVM_LIBS="`$LLVM_CONFIG --libs` -lstdc++" + LLVM_LIBS="-lLLVM-`$LLVM_CONFIG --version` -lstdc++" LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags` GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS llvmpipe"