OSDN Git Service

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 853b93a..bf288c5 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'
 }