Mercurial > sdl-ios-xcode
comparison configure.in @ 1745:741dc4e89f3a
Only use -fvisibility=hidden if SDL will define some symbols as available. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Apr 2006 04:08:40 +0000 |
parents | af4352da64d8 |
children | c546353b1ad4 |
comparison
equal
deleted
inserted
replaced
1744:7f39af143e38 | 1745:741dc4e89f3a |
---|---|
713 | 713 |
714 visibility_CFLAGS="-fvisibility=hidden" | 714 visibility_CFLAGS="-fvisibility=hidden" |
715 save_CFLAGS="$CFLAGS" | 715 save_CFLAGS="$CFLAGS" |
716 CFLAGS="$save_CFLAGS $visibility_CFLAGS" | 716 CFLAGS="$save_CFLAGS $visibility_CFLAGS" |
717 AC_TRY_COMPILE([ | 717 AC_TRY_COMPILE([ |
718 int placeholder = 1; | 718 #if !defined(__GNUC__) || __GNUC__ < 4 |
719 #error SDL only uses visibility attributes in GCC 4 or newer | |
720 #endif | |
719 ],[ | 721 ],[ |
720 ],[ | 722 ],[ |
721 have_gcc_fvisibility=yes | 723 have_gcc_fvisibility=yes |
722 ]) | 724 ]) |
723 AC_MSG_RESULT($have_gcc_fvisibility) | 725 AC_MSG_RESULT($have_gcc_fvisibility) |