From: Jonathan Gray Date: Fri, 5 Sep 2014 15:44:41 +0000 (+1000) Subject: configure.ac: strip _GNU_SOURCE from llvm-config output X-Git-Tag: upstream/17.1.0~23652 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c68073e65f15b0df43bec2df1d7470ed4cddd761;p=platform%2Fupstream%2Fmesa.git 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" Signed-off-by: Jonathan Gray --- diff --git a/configure.ac b/configure.ac index 6087e05..29cf32e 100644 --- a/configure.ac +++ b/configure.ac @@ -1660,6 +1660,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' \