Mesa (master): configure: Remove more flags from llvm-config

Francisco Jerez currojerez at kemper.freedesktop.org
Mon Mar 3 16:23:04 UTC 2014


Module: Mesa
Branch: master
Commit: 089d0660c7d80dd4aed1ea0ab8b8ff9390f6bc3a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=089d0660c7d80dd4aed1ea0ab8b8ff9390f6bc3a

Author: Bruno Jiménez <brunojimen at gmail.com>
Date:   Sun Mar  2 22:39:01 2014 +0100

configure: Remove more flags from llvm-config

This way, we are left with only the preprocessor flags and '-std=X'

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

---

 configure.ac |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 853b93a..bf288c5 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'
 }
 
 




More information about the mesa-commit mailing list