From 53e36d333c9b619c1a5fe9a8d2d08665654b0234 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 11 Oct 2012 18:19:49 -0700 Subject: 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 --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'configure.ac') 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 -- cgit v1.2.3