]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: do not link libs against ${ALLOC_LIBS} 22990/head
authorKefu Chai <kchai@redhat.com>
Wed, 25 Jul 2018 10:51:49 +0000 (18:51 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 29 Jul 2018 13:25:52 +0000 (21:25 +0800)
let libcommon or libceph-common take care of this.

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

index 48759883c1e4b646debe9be44002daeee8f5d7a2..fdadb155e210f1926f3c9098981d773541b4d5c9 100644 (file)
@@ -448,8 +448,7 @@ if(WITH_DPDK)
 endif()
 
 add_library(common STATIC ${ceph_common_objs})
-target_link_libraries(common
-  PRIVATE ${ceph_common_deps})
+target_link_libraries(common ${ceph_common_deps})
 
 add_library(ceph-common SHARED ${ceph_common_objs})
 target_link_libraries(ceph-common ${ceph_common_deps})
@@ -542,7 +541,7 @@ set(ceph_osd_srcs
 add_executable(ceph-osd ${ceph_osd_srcs})
 add_dependencies(ceph-osd erasure_code_plugins)
 target_link_libraries(ceph-osd osd os global-static common
-  ${BLKID_LIBRARIES} ${ALLOC_LIBS})
+  ${BLKID_LIBRARIES})
 if(WITH_FUSE)
   target_link_libraries(ceph-osd ${FUSE_LIBRARIES})
 endif()
@@ -683,7 +682,7 @@ if(WITH_FUSE)
     ceph_fuse.cc
     client/fuse_ll.cc)
   add_executable(ceph-fuse ${ceph_fuse_srcs})
-  target_link_libraries(ceph-fuse ${ALLOC_LIBS} ${FUSE_LIBRARIES}
+  target_link_libraries(ceph-fuse ${FUSE_LIBRARIES}
     client ceph-common global-static)
   set_target_properties(ceph-fuse PROPERTIES
     COMPILE_FLAGS "-I${FUSE_INCLUDE_DIRS}"
index c20bb5e4099952658e02afae0c545cb195f2e84e..215b80d56d8014ea8c758a6534523f4d06907f70 100644 (file)
@@ -11,7 +11,7 @@ add_library(kv_objs OBJECT ${kv_srcs})
 add_library(kv STATIC $<TARGET_OBJECTS:kv_objs>)
 target_include_directories(kv_objs SYSTEM BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR})
 target_include_directories(kv SYSTEM BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR})
-target_link_libraries(kv ${LEVELDB_LIBRARIES} ${ROCKSDB_LIBRARIES} ${ALLOC_LIBS} ${SNAPPY_LIBRARIES} ${ZLIB_LIBRARIES})
+target_link_libraries(kv ${LEVELDB_LIBRARIES} ${ROCKSDB_LIBRARIES} ${SNAPPY_LIBRARIES} ${ZLIB_LIBRARIES})
 if(WITH_LZ4)
   target_link_libraries(kv ${LZ4_LIBRARY})
 endif()
index 63c2bd5f2923edfd0467b9960f95deaca6dbb8b1..025dbdd7f2b8253c29508ac6447a3ebdefd64e1f 100644 (file)
@@ -44,4 +44,4 @@ set(mds_srcs
   ${CMAKE_SOURCE_DIR}/src/osdc/Journaler.cc)
 add_library(mds STATIC ${mds_srcs})
 target_link_libraries(mds PRIVATE
-  heap_profiler cpu_profiler ${ALLOC_LIBS} osdc liblua)
+  heap_profiler cpu_profiler osdc liblua)
index 5e061bf95c65e924175b3e6028e0121437f450bb..3ed9a960d519f23239667c91396dd2676f90cb87 100644 (file)
@@ -24,7 +24,7 @@ target_include_directories(ceph-mgr SYSTEM PRIVATE "${PYTHON_INCLUDE_DIRS}")
 target_link_libraries(ceph-mgr
   osdc client heap_profiler
   global-static ceph-common
-  Boost::python ${MGR_PYTHON_LIBRARIES} ${CMAKE_DL_LIBS} ${ALLOC_LIBS})
+  Boost::python ${MGR_PYTHON_LIBRARIES} ${CMAKE_DL_LIBS})
 set_target_properties(ceph-mgr PROPERTIES
   POSITION_INDEPENDENT_CODE ${EXE_LINKER_USE_PIE})
 install(TARGETS ceph-mgr DESTINATION bin)
index 1f835a22c71581d94d550e1d9011e73bb92acb54..ca73bc04746b1912be8fc5e95fbcc8f94aca06aa 100644 (file)
@@ -26,4 +26,4 @@ set(lib_mon_srcs
 add_library(mon STATIC
   ${lib_mon_srcs}
   $<TARGET_OBJECTS:kv_objs>)
-target_link_libraries(mon heap_profiler ${ALLOC_LIBS})
+target_link_libraries(mon heap_profiler)