From: Vinson Lee Date: Fri, 12 Oct 2012 01:19:49 +0000 (-0700) Subject: build: Build on Cygwin with gnu99 instead of c99. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53e36d333c9b619c1a5fe9a8d2d08665654b0234;p=mesa.git 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 Reviewed-by: Brian Paul --- diff --git a/configure.ac b/configure.ac index aa72523c0a5..6f851e25c1c 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