diff options
Diffstat (limited to 'cmake/compiler/gcc')
-rw-r--r-- | cmake/compiler/gcc/settings.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake index d854ff521ce..9139a028f18 100644 --- a/cmake/compiler/gcc/settings.cmake +++ b/cmake/compiler/gcc/settings.cmake @@ -48,9 +48,12 @@ if (BUILD_SHARED_LIBS) target_compile_options(trinity-compile-option-interface INTERFACE -fPIC - -fvisibility=hidden -Wno-attributes) + target_compile_options(trinity-hidden-symbols-interface + INTERFACE + -fvisibility=hidden) + # Should break the build when there are TRINITY_*_API macros missing # but it complains about missing references in precompiled headers. # set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--no-undefined") |