From: Kefu Chai Date: Thu, 23 Jun 2016 02:53:39 +0000 (+0800) Subject: cmake: remove visibility flags from libcephfs,libradosstriper X-Git-Tag: v11.0.0~67^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b2fd2b3eb3e42f7975f76dd372338852ddcce19;p=ceph.git 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 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0f53a9f28eec..6b4bcd2252c1 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 e40de8d68ca7..1a2170152f60 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})