Only use -fvisibility=hidden if SDL will define some symbols as available. :)
authorSam Lantinga
Sat, 29 Apr 2006 04:08:40 +0000
changeset 1745741dc4e89f3a
parent 1744 7f39af143e38
child 1746 a0ddae8b43cf
Only use -fvisibility=hidden if SDL will define some symbols as available. :)
configure.in
     1.1 --- a/configure.in	Fri Apr 28 05:46:07 2006 +0000
     1.2 +++ b/configure.in	Sat Apr 29 04:08:40 2006 +0000
     1.3 @@ -715,7 +715,9 @@
     1.4      save_CFLAGS="$CFLAGS"
     1.5      CFLAGS="$save_CFLAGS $visibility_CFLAGS"
     1.6      AC_TRY_COMPILE([
     1.7 -        int placeholder = 1;
     1.8 +    #if !defined(__GNUC__) || __GNUC__ < 4
     1.9 +    #error SDL only uses visibility attributes in GCC 4 or newer
    1.10 +    #endif
    1.11      ],[
    1.12      ],[
    1.13      have_gcc_fvisibility=yes