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-21 23:31:11 +0100
commit9d0400211def5b56b33f966707ab764597470c83 (patch)
treed80f2635714b18ccf6a5de42d87a31e71531c544 /cmake/compiler/gcc
parent9a515c29bab2dadec011f40e4f824bd9409528d4 (diff)
Build: Export a default interface which doesn't hide symbols in unix automatically
(cherry picked from commit db5d5a03be4829928bd20c7d40a6f576f0b86478)
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")