Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/soxr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Sykes <rob@rob-Ideapad-S205.(none)>2013-02-07 00:42:05 +0400
committerRob Sykes <rob@rob-Ideapad-S205.(none)>2013-02-07 00:42:05 +0400
commit4415c804ba1309ebda0e9f868bceb3fce4058afa (patch)
tree580ffb6f4d4d13f543d4a06277042360c5968e6e /CMakeLists.txt
parent0378fd9de2967f4c459a92c2a754549600c2bb3a (diff)
Use gcc -fvisibility=hidden to fix debian build on archs. armhf, powerpc.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1d27d19..dcd3aad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -130,9 +130,10 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_BUILD_TYPE STREQUAL "Release")
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -s") # strip
endif ()
- #option (VISIBILITY_HIDDEN "Build with -fvisibility=hidden." ON)
+ cmake_dependent_option (VISIBILITY_HIDDEN "Build with -fvisibility=hidden." ON
+ "BUILD_SHARED_LIBS" OFF)
if (VISIBILITY_HIDDEN)
- add_definitions (-fvisibility=hidden)
+ add_definitions (-fvisibility=hidden -DSOXR_VISIBILITY)
endif ()
endif ()