comparison configure.in @ 4125:21d48dbc2ca8 SDL-1.2

Don't use -fvisibility if it generates warnings ... like this one: warning: visibility attribute not supported in this configuration; ignored
author Sam Lantinga <slouken@libsdl.org>
date Sun, 30 Dec 2007 05:00:20 +0000
parents 0c3559059d6d
children f7e5a35a1d0d
comparison
equal deleted inserted replaced
4124:df2f562890a0 4125:21d48dbc2ca8
831 AC_MSG_CHECKING(for GCC -fvisibility=hidden option) 831 AC_MSG_CHECKING(for GCC -fvisibility=hidden option)
832 have_gcc_fvisibility=no 832 have_gcc_fvisibility=no
833 833
834 visibility_CFLAGS="-fvisibility=hidden" 834 visibility_CFLAGS="-fvisibility=hidden"
835 save_CFLAGS="$CFLAGS" 835 save_CFLAGS="$CFLAGS"
836 CFLAGS="$save_CFLAGS $visibility_CFLAGS" 836 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
837 AC_TRY_COMPILE([ 837 AC_TRY_COMPILE([
838 #if !defined(__GNUC__) || __GNUC__ < 4 838 #if !defined(__GNUC__) || __GNUC__ < 4
839 #error SDL only uses visibility attributes in GCC 4 or newer 839 #error SDL only uses visibility attributes in GCC 4 or newer
840 #endif 840 #endif
841 ],[ 841 ],[