From 5185c720ea31fec4965da726c08c97f637ba276c Mon Sep 17 00:00:00 2001 From: Xaymar Date: Thu, 5 Nov 2020 20:12:57 +0100 Subject: [PATCH] cmake: Restore default visibility The MODULE_EXPORT and EXPORT macros in libOBS do not correctly mark a function or type as visible on GCC, which results in the newly added flag hiding everything from view, instead of just what should be hidden. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2e106af..886875ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,12 +173,12 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL message(STATUS "Applying custom flags for GNU style build.") # Clang/AppleClang/GNU - # - Don't export by default. + # - Don't export by default. (Temporarily disabled) # - Enable all and extra warnings. add_compile_options("-Wall") add_compile_options("-Wextra") - add_compile_options("-fvisibility=hidden") + # add_compile_options("-fvisibility=hidden") endif() # C++ Standard and Extensions