configure.in
changeset 2292 4845eb8d4221
parent 2290 323a5af2924b
child 2293 824f6dee6648
equal deleted inserted replaced
2291:dc3dd3a0bf02 2292:4845eb8d4221
   876     AC_MSG_CHECKING(for GCC -fvisibility=hidden option)
   876     AC_MSG_CHECKING(for GCC -fvisibility=hidden option)
   877     have_gcc_fvisibility=no
   877     have_gcc_fvisibility=no
   878 
   878 
   879     visibility_CFLAGS="-fvisibility=hidden"
   879     visibility_CFLAGS="-fvisibility=hidden"
   880     save_CFLAGS="$CFLAGS"
   880     save_CFLAGS="$CFLAGS"
   881     CFLAGS="$save_CFLAGS $visibility_CFLAGS"
   881     CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
   882     AC_TRY_COMPILE([
   882     AC_TRY_COMPILE([
   883     #if !defined(__GNUC__) || __GNUC__ < 4
   883     #if !defined(__GNUC__) || __GNUC__ < 4
   884     #error SDL only uses visibility attributes in GCC 4 or newer
   884     #error SDL only uses visibility attributes in GCC 4 or newer
   885     #endif
   885     #endif
   886     ],[
   886     ],[