configure.ac: remove -fcolor-diagnostics from LLVM flags
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Fri, 13 Dec 2013 09:59:42 +0000 (10:59 +0100)
committerBrian Paul <brianp@vmware.com>
Wed, 18 Dec 2013 14:12:13 +0000 (07:12 -0700)
When LLVM is build with Clang, "llvm-config --cxxflags" contains the
-fcolor-diagnostics flag. It is not recognized by gcc and the build
fails. Fix by removing the flag.

Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Brian Paul <brianp@vmware.com>
configure.ac

index 64816271e1fba290e4da18a84c120e64faf4f3c5..b0e2b4c38443eef239d06dfff165ffdb1edaf214 100644 (file)
@@ -1546,6 +1546,7 @@ strip_unwanted_llvm_flags() {
        -e 's/-O.\>//g' \
        -e 's/-g\>//g' \
        -e 's/-Wall\>//g' \
+       -e 's/-fcolor-diagnostics\>//g' \
        -e 's/-fomit-frame-pointer\>//g'
 }