summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2014-09-06 01:44:41 +1000
committerEmil Velikov <emil.l.velikov@gmail.com>2014-09-09 21:29:29 +0100
commite4752221679c4fd67d8b5688b5735d2a4d45275a (patch)
tree57da39c029589056f229d6d77498e5a74c1d5719 /configure.ac
parentaf2a612912f008d0b65ecc96043ba876c5a0115d (diff)
configure.ac: strip _GNU_SOURCE from llvm-config output
Mesa already defines _GNU_SOURCE for glibc based systems and defining _GNU_SOURCE will break the Mesa build on other systems such as OpenBSD. _GNU_SOURCE only seems to be included in llvm-config output when LLVM is built via autoconf and not when it is built by cmake. Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org> Signed-off-by: Jonathan Gray <jsg@jsg.id.au> (cherry picked from commit c68073e65f15b0df43bec2df1d7470ed4cddd761)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 812cf652aa5..c7212b7bc4b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1583,6 +1583,7 @@ strip_unwanted_llvm_flags() {
# Use \> (marks the end of the word)
echo `$1` | sed \
-e 's/-DNDEBUG\>//g' \
+ -e 's/-D_GNU_SOURCE\>//g' \
-e 's/-pedantic\>//g' \
-e 's/-Wcovered-switch-default\>//g' \
-e 's/-O.\>//g' \