From 214d5777f84bc5e2103c62f3838e6103ad220d3a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 29 Apr 2006 04:08:40 +0000 Subject: [PATCH] Only use -fvisibility=hidden if SDL will define some symbols as available. :) --- configure.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 0cbe850e7..89ed18a9f 100644 --- a/configure.in +++ b/configure.in @@ -715,7 +715,9 @@ CheckVisibilityHidden() 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