Fix build with LLVM >= r145623.
authorJohannes Obermayr <johannesobermayr@gmx.de>
Mon, 19 Dec 2011 22:11:46 +0000 (23:11 +0100)
committerBrian Paul <brianp@vmware.com>
Mon, 26 Dec 2011 23:12:10 +0000 (16:12 -0700)
This is a workaround for https://bugs.freedesktop.org/show_bug.cgi?id=43861.

Actually the issue which makes -pedantic failing should be solved.

Reviewed-by: Michel Dänzer <michel@daenzer.net>
Signed-off-by: Brian Paul <brianp@vmware.com>
configure.ac

index a4943e126b61efab41affe1900429203532e2fae..8e809b938c61efb5e97834e88f68f03d3b867b49 100644 (file)
@@ -1753,7 +1753,7 @@ if test "x$enable_gallium_llvm" = xyes; then
 
     if test "x$LLVM_CONFIG" != xno; then
        LLVM_VERSION=`$LLVM_CONFIG --version`
-       LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed 's/-DNDEBUG\>//g'`
+       LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed -e 's/-DNDEBUG\>//g' -e 's/-pedantic//g'`
        LLVM_LIBS="`$LLVM_CONFIG --libs`"
 
        LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`