From 1b2fd2b3eb3e42f7975f76dd372338852ddcce19 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 23 Jun 2016 10:53:39 +0800 Subject: [PATCH] cmake: remove visibility flags from libcephfs,libradosstriper because libradosstriper does not put the `__attribute__ ((visibility ("default")))` specifier on the exported class/methods. we cannot add the visibility to this library yet. the same applies to libcephfs. Signed-off-by: Kefu Chai --- src/CMakeLists.txt | 3 +-- src/libradosstriper/CMakeLists.txt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0f53a9f28ee..6b4bcd2252c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1152,8 +1152,7 @@ if(WITH_LIBCEPHFS) set_target_properties(cephfs PROPERTIES OUTPUT_NAME cephfs VERSION 1.0.0 - SOVERSION 1 - COMPILE_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden") + SOVERSION 1) endif(ENABLE_SHARED) install(TARGETS cephfs DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(DIRECTORY diff --git a/src/libradosstriper/CMakeLists.txt b/src/libradosstriper/CMakeLists.txt index e40de8d68ca..1a2170152f6 100644 --- a/src/libradosstriper/CMakeLists.txt +++ b/src/libradosstriper/CMakeLists.txt @@ -7,7 +7,6 @@ target_link_libraries(radosstriper librados cls_lock_client osdc common pthread set_target_properties(radosstriper PROPERTIES OUPUT_NAME radosstriper VERSION 1.0.0 - SOVERSION 1 - COMPILE_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden") + SOVERSION 1) install(TARGETS radosstriper DESTINATION ${CMAKE_INSTALL_LIBDIR}) -- 2.39.5