configure: Remove more flags from llvm-config
authorBruno Jiménez <brunojimen@gmail.com>
Sun, 2 Mar 2014 21:39:01 +0000 (22:39 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 3 Mar 2014 16:16:52 +0000 (17:16 +0100)
This way, we are left with only the preprocessor flags and '-std=X'

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
configure.ac

index 853b93a64270a6412f74882bb54b6ebdb94a7015..bf288c51beaf8de150fff2ba5e7389df06de3833 100644 (file)
@@ -1549,8 +1549,15 @@ strip_unwanted_llvm_flags() {
        -e 's/-O.\>//g' \
        -e 's/-g\>//g' \
        -e 's/-Wall\>//g' \
+       -e 's/-Wcast-qual\>//g' \
+       -e 's/-Woverloaded-virtual\>//g' \
        -e 's/-fcolor-diagnostics\>//g' \
-       -e 's/-fomit-frame-pointer\>//g'
+       -e 's/-fdata-sections\>//g' \
+       -e 's/-ffunction-sections\>//g' \
+       -e 's/-fno-exceptions\>//g' \
+       -e 's/-fomit-frame-pointer\>//g' \
+       -e 's/-fvisibility-inlines-hidden\>//g' \
+       -e 's/-fPIC\>//g'
 }