summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-09-10 15:14:48 +0200
committerlouiz’ <louiz@louiz.org>2017-09-10 15:14:48 +0200
commit5669950e206535747e1e0634fd16e987ac6474b3 (patch)
treeb8a9448d4ece7a8689ff8a0318679e7b8eb1330a
parentfe2221121828a66029913c9863e5c7bbf7a1a50b (diff)
parentc20978fc473c4bbcfbe0cbff3271bb22a8c8c430 (diff)
downloadbiboumi-5669950e206535747e1e0634fd16e987ac6474b3.tar.gz
biboumi-5669950e206535747e1e0634fd16e987ac6474b3.tar.bz2
biboumi-5669950e206535747e1e0634fd16e987ac6474b3.tar.xz
biboumi-5669950e206535747e1e0634fd16e987ac6474b3.zip
Merge branch 'patch-1' into 'master'
Set symbol visibility to hidden in cmake See merge request !15
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 596d277..f3a79b2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,7 +20,7 @@ find_library(LIBUBSAN NAMES ubsan libubsan.so.0)
#
## Set various debug flags (instrumentation libs, coverage, …)
#
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -pedantic -Wall -Wextra -Wconversion")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -pedantic -Wall -Wextra -Wconversion -fvisibility=hidden -fvisibility-inlines-hidden")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage --coverage")
endif()