Skip to content
Permalink
Browse files

Only use -fvisibility=hidden if SDL will define some symbols as avail…

…able. :)
  • Loading branch information
slouken committed Apr 29, 2006
1 parent 18c538d commit 214d5777f84bc5e2103c62f3838e6103ad220d3a
Showing with 3 additions and 1 deletion.
  1. +3 −1 configure.in
@@ -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

0 comments on commit 214d577

Please sign in to comment.