]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: remove visibility flags from libcephfs,libradosstriper
authorKefu Chai <kchai@redhat.com>
Thu, 23 Jun 2016 02:53:39 +0000 (10:53 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 23 Jun 2016 07:23:58 +0000 (15:23 +0800)
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 <kchai@redhat.com>
src/CMakeLists.txt
src/libradosstriper/CMakeLists.txt

index 0f53a9f28eec1060852d362228fda0ff92bbf3af..6b4bcd2252c1d05920cb7f01b520a614d792443a 100644 (file)
@@ -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
index e40de8d68ca79d7580b91d46003094bdff5c50ed..1a2170152f607fea94682a60e491bd28071b4dc5 100644 (file)
@@ -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})