Mesa (10.3): configure.ac: strip _GNU_SOURCE from llvm-config output
Emil Velikov
evelikov at kemper.freedesktop.org
Tue Sep 9 21:05:34 UTC 2014
Module: Mesa
Branch: 10.3
Commit: 9f67c26d1b424b8f3d86b5435c8f74d0a81eb86d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f67c26d1b424b8f3d86b5435c8f74d0a81eb86d
Author: Jonathan Gray <jsg at jsg.id.au>
Date: Sat Sep 6 01:44:41 2014 +1000
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 at lists.freedesktop.org>
Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
(cherry picked from commit c68073e65f15b0df43bec2df1d7470ed4cddd761)
---
configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index 0622f18..4320045 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1655,6 +1655,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' \
More information about the mesa-commit
mailing list