]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: do not create symlink for libceph-common.so.*
authorKefu Chai <kchai@redhat.com>
Thu, 1 Nov 2018 03:50:45 +0000 (11:50 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 1 Nov 2018 16:15:31 +0000 (00:15 +0800)
and bump up its soversion, so it won't conflict with libceph-common.so.0
offered by librados2.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 0ea7f9690fbf033db6790ab6a8e81aab1e419b7b..de0a3aa76bbccb4c49d924416eb2f1bbb21289e5 100644 (file)
@@ -397,7 +397,7 @@ add_library(ceph-common SHARED ${ceph_common_objs})
 target_link_libraries(ceph-common ${ceph_common_deps})
 # appease dpkg-shlibdeps
 set_target_properties(ceph-common PROPERTIES
-  SOVERSION 0
+  SOVERSION 1
   INSTALL_RPATH "")
 if(NOT APPLE)
   # Apple uses Mach-O, not ELF. so this option does not apply to APPLE.
@@ -413,7 +413,11 @@ if(NOT APPLE)
     PROPERTY LINK_FLAGS "-Wl,-Bsymbolic -Wl,-Bsymbolic-functions")
 endif()
 
-install(TARGETS ceph-common DESTINATION ${CMAKE_INSTALL_PKGLIBDIR})
+install(
+  TARGETS ceph-common
+  LIBRARY
+  DESTINATION ${CMAKE_INSTALL_PKGLIBDIR}
+  NAMELINK_SKIP)
 
 if(${WITH_LTTNG})
   add_subdirectory(tracing)