mirror of
https://github.com/joel16/SDL2.git
synced 2024-12-03 08:40:50 +00:00
Only use -fvisibility=hidden if SDL will define some symbols as available. :)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401703
This commit is contained in:
parent
f573eff4b8
commit
ff8de4f06a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user