OSDN Git Service

configure.ac: strip _GNU_SOURCE from llvm-config output
authorJonathan Gray <jsg@jsg.id.au>
Fri, 5 Sep 2014 15:44:41 +0000 (01:44 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 9 Sep 2014 19:04:45 +0000 (20:04 +0100)
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>
configure.ac

index 6087e05..29cf32e 100644 (file)
@@ -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' \