Mesa (master): build: Build on Cygwin with gnu99 instead of c99.
Vinson Lee
vlee at kemper.freedesktop.org
Wed Oct 17 06:31:42 UTC 2012
Module: Mesa
Branch: master
Commit: 53e36d333c9b619c1a5fe9a8d2d08665654b0234
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=53e36d333c9b619c1a5fe9a8d2d08665654b0234
Author: Vinson Lee <vlee at freedesktop.org>
Date: Thu Oct 11 18:19:49 2012 -0700
build: Build on Cygwin with gnu99 instead of c99.
The GCC c99 standard on Cygwin sets __STRICT_ANSI__ and symbols such as
strdup are not available.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
configure.ac | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index aa72523..6f851e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,7 +172,14 @@ esac
dnl Add flags for gcc and g++
if test "x$GCC" = xyes; then
- CFLAGS="$CFLAGS -Wall -std=c99"
+ case "$host_os" in
+ cygwin*)
+ CFLAGS="$CFLAGS -Wall -std=gnu99"
+ ;;
+ *)
+ CFLAGS="$CFLAGS -Wall -std=c99"
+ ;;
+ esac
# Enable -Werror=implicit-function-declaration and
# -Werror=missing-prototypes, if available, or otherwise, just
More information about the mesa-commit
mailing list