summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-13 22:11:38 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-13 22:11:38 -0800
commit2562c734da6da6bd57ef6a2179a2eb22dda7b126 (patch)
treed884de0b893bd5151ca448c78b8f81c1f5583c76 /src
parentee47f2f66832ec6b3f5254a64616bdc6ed5b8575 (diff)
Compile with -fvisibility=hidden.
We'll mark public functions as "default".
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3c0f610..3157bd1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -89,7 +89,7 @@ if(MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
endif()
elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=c99 -pedantic")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -Wall -std=c99 -pedantic")
endif()
if($ENV{TIMER})