Skip to content

Commit

Permalink
Only use -fvisibility=hidden if SDL will define some symbols as avail…
Browse files Browse the repository at this point in the history
…able. :)
  • Loading branch information
slouken committed Apr 29, 2006
1 parent 18c538d commit 214d577
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.in
Expand Up @@ -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
Expand Down

0 comments on commit 214d577

Please sign in to comment.