Don't use -fvisibility if it generates warnings ... like this one: SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 30 Dec 2007 05:00:20 +0000
branchSDL-1.2
changeset 412521d48dbc2ca8
parent 4124 df2f562890a0
child 4126 19bfebb38b21
Don't use -fvisibility if it generates warnings ... like this one:
warning: visibility attribute not supported in this configuration; ignored
configure.in
     1.1 --- a/configure.in	Sat Dec 29 21:41:48 2007 +0000
     1.2 +++ b/configure.in	Sun Dec 30 05:00:20 2007 +0000
     1.3 @@ -833,7 +833,7 @@
     1.4  
     1.5      visibility_CFLAGS="-fvisibility=hidden"
     1.6      save_CFLAGS="$CFLAGS"
     1.7 -    CFLAGS="$save_CFLAGS $visibility_CFLAGS"
     1.8 +    CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
     1.9      AC_TRY_COMPILE([
    1.10      #if !defined(__GNUC__) || __GNUC__ < 4
    1.11      #error SDL only uses visibility attributes in GCC 4 or newer