Skip to content
Permalink
Browse files

Don't use -fvisibility if it generates warnings ... like this one:

warning: visibility attribute not supported in this configuration; ignored
  • Loading branch information
slouken committed Dec 30, 2007
1 parent 31f73f2 commit cde55df717090fee0cfc1df7e2ea8078d373e16e
Showing with 1 addition and 1 deletion.
  1. +1 −1 configure.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

0 comments on commit cde55df

Please sign in to comment.