Only use -fvisibility=hidden if SDL will define some symbols as available. :)

This commit is contained in:
Sam Lantinga
2006-04-29 04:08:40 +00:00
parent f1a9e1bc50
commit 7ff14ade60

View File

@@ -715,7 +715,9 @@ CheckVisibilityHidden()
save_CFLAGS="$CFLAGS"
CFLAGS="$save_CFLAGS $visibility_CFLAGS"
AC_TRY_COMPILE([
int placeholder = 1;
#if !defined(__GNUC__) || __GNUC__ < 4
#error SDL only uses visibility attributes in GCC 4 or newer
#endif
],[
],[
have_gcc_fvisibility=yes