From 0ad3f61351e85882fb6f119c05152136098a3233 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 26 Jul 2014 17:48:36 -0700 Subject: Don't try to use internal visibility A number of functions are passed as callbacks to external libraries, which internal visiiblity doesn't allow. --- CMakeLists.txt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 75cb5e4f..c7c73600 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -289,14 +289,9 @@ ELSE() ENDIF() IF(HAVE_GCC_PROTECTED_VISIBILITY OR HAVE_GCC_DEFAULT_VISIBILITY) - CHECK_C_COMPILER_FLAG(-fvisibility=internal HAVE_VISIBILITY_INTERNAL_SWITCH) - IF(HAVE_VISIBILITY_INTERNAL_SWITCH) - ADD_DEFINITIONS(-fvisibility=internal) - ELSE() - CHECK_C_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN_SWITCH) - IF(HAVE_VISIBILITY_HIDDEN_SWITCH) - ADD_DEFINITIONS(-fvisibility=hidden) - ENDIF() + CHECK_C_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN_SWITCH) + IF(HAVE_VISIBILITY_HIDDEN_SWITCH) + ADD_DEFINITIONS(-fvisibility=hidden) ENDIF() ENDIF() -- cgit v1.2.3