From 089d0660c7d80dd4aed1ea0ab8b8ff9390f6bc3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bruno=20Jim=C3=A9nez?= Date: Sun, 2 Mar 2014 22:39:01 +0100 Subject: [PATCH] configure: Remove more flags from llvm-config This way, we are left with only the preprocessor flags and '-std=X' Reviewed-by: Francisco Jerez Reviewed-by: Tom Stellard --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 853b93a6427..bf288c51bea 100644 --- a/configure.ac +++ b/configure.ac @@ -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' } -- 2.30.2