Don't use -fvisibilty=hidden on cygwin
authorJon TURNEY <jon.turney@dronecode.org.uk>
Tue, 26 Apr 2011 10:56:02 +0000 (11:56 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Tue, 28 Jun 2011 16:07:02 +0000 (17:07 +0100)
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 <jon.turney@dronecode.org.uk>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
configure.ac

index 74357a2e24c9d7e63688865edb3afd28dbddd6bd..7fbba7d62d6f6b65be153b41814e01aa2eeb39d7 100644 (file)
@@ -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])