aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler/gcc
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2017-12-17 22:53:45 +0100
committerNaios <naios-dev@live.de>2017-12-20 04:04:28 +0100
commitdb5d5a03be4829928bd20c7d40a6f576f0b86478 (patch)
treea513ef0b85ac65bac5897f57e85cd9ff2726bd34 /cmake/compiler/gcc
parent891960edbe3768284a3892ae3edbe4afb6395e8f (diff)
Build: Export a default interface which doesn't hide symbols in unix automatically
Diffstat (limited to 'cmake/compiler/gcc')
-rw-r--r--cmake/compiler/gcc/settings.cmake5
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")