mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Don't use -fvisibility if it generates warnings ... like this one:
warning: visibility attribute not supported in this configuration; ignored --HG-- branch : SDL-1.2
This commit is contained in:
@@ -833,7 +833,7 @@ CheckVisibilityHidden()
|
||||
|
||||
visibility_CFLAGS="-fvisibility=hidden"
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$save_CFLAGS $visibility_CFLAGS"
|
||||
CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
|
||||
AC_TRY_COMPILE([
|
||||
#if !defined(__GNUC__) || __GNUC__ < 4
|
||||
#error SDL only uses visibility attributes in GCC 4 or newer
|
||||
|
||||
Reference in New Issue
Block a user