diff options
author | Chris Robinson <[email protected]> | 2014-07-26 17:48:36 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-07-26 17:48:36 -0700 |
commit | 0ad3f61351e85882fb6f119c05152136098a3233 (patch) | |
tree | 6e698a7536557e0e3299e9edb731aaed47399816 /CMakeLists.txt | |
parent | d3980bdebc379c104c406223e0d83e78b16bd791 (diff) |
Don't try to use internal visibility
A number of functions are passed as callbacks to external libraries, which
internal visiiblity doesn't allow.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 3 insertions, 8 deletions
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() |