From: Jon TURNEY Date: Tue, 26 Apr 2011 10:56:02 +0000 (+0100) Subject: Don't use -fvisibilty=hidden on cygwin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db78643182dc39ed592dd8c2e5fc7c8eeb7316a1;p=mesa.git Don't use -fvisibilty=hidden on cygwin All it's going to do is generate lots and lots and lots of 'warning: visibility attribute not supported in this configuration; ignored' warnings Signed-off-by: Jon TURNEY Reviewed-by: Dan Nicholson --- diff --git a/configure.ac b/configure.ac index 74357a2e24c..7fbba7d62d6 100644 --- a/configure.ac +++ b/configure.ac @@ -189,6 +189,15 @@ if test "x$GXX" = xyes; then CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" fi +dnl even if the compiler appears to support it, using visibility attributes isn't +dnl going to do anything useful currently on cygwin apart from emit lots of warnings +case "$host_os" in +cygwin*) + VISIBILITY_CFLAGS="" + VISIBILITY_CXXFLAGS="" + ;; +esac + AC_SUBST([VISIBILITY_CFLAGS]) AC_SUBST([VISIBILITY_CXXFLAGS])