]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: remove unnecessary linkage of librt
authorKefu Chai <kchai@redhat.com>
Sat, 9 Sep 2017 16:49:15 +0000 (00:49 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Sep 2017 02:43:32 +0000 (10:43 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index b218a0eeaea05b83971ec59e7c4014199d05ccab..aa56c21dc63a75b8bc03d174189430d4c54c36d0 100644 (file)
@@ -266,12 +266,12 @@ endif()
 
 if(HAVE_XIO)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${XIO_INCLUDE_DIR}")
-  list(APPEND EXTRALIBS ${XIO_LIBRARY} pthread rt)
+  list(APPEND EXTRALIBS ${XIO_LIBRARY} pthread)
 endif(HAVE_XIO)
 
 if(HAVE_RDMA)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${RDMA_INCLUDE_DIR}")
-  list(APPEND EXTRALIBS ${RDMA_LIBRARIES} pthread rt)
+  list(APPEND EXTRALIBS ${RDMA_LIBRARIES} pthread)
 endif(HAVE_RDMA)
 
 if(HAVE_DPDK)
@@ -626,7 +626,7 @@ set(ceph_common_objs
   $<TARGET_OBJECTS:global_common_objs>
   $<TARGET_OBJECTS:crush_objs>)
 set(ceph_common_deps
-  json_spirit erasure_code rt ${LIB_RESOLV}
+  json_spirit erasure_code ${LIB_RESOLV}
   Boost::thread
   Boost::system
   Boost::regex