changeset 1745:741dc4e89f3a

Only use -fvisibility=hidden if SDL will define some symbols as available. :)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Apr 2006 04:08:40 +0000
parents 7f39af143e38
children a0ddae8b43cf
files configure.in
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Fri Apr 28 05:46:07 2006 +0000
+++ b/configure.in	Sat Apr 29 04:08:40 2006 +0000
@@ -715,7 +715,9 @@
     save_CFLAGS="$CFLAGS"
     CFLAGS="$save_CFLAGS $visibility_CFLAGS"
     AC_TRY_COMPILE([
-        int placeholder = 1;
+    #if !defined(__GNUC__) || __GNUC__ < 4
+    #error SDL only uses visibility attributes in GCC 4 or newer
+    #endif
     ],[
     ],[
     have_gcc_fvisibility=yes