]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: link libcommon against $CRYPTO_LIBS
authorKefu Chai <kchai@redhat.com>
Wed, 13 Jul 2016 16:25:43 +0000 (00:25 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Jul 2016 04:00:46 +0000 (12:00 +0800)
as ceph_crypt.cc is using the symbols in it, and libcommon contains
ceph_crypt.cc.

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

index a6d19ee76713bd507eb0808ccc06a95ee71e451a..f679b372715404cdb1fdce307a7f07b9ddfcb960 100644 (file)
@@ -491,7 +491,7 @@ endif(ENABLE_SHARED)
 add_library(common STATIC ${libcommon_files}
   $<TARGET_OBJECTS:mon_common_objs>
   $<TARGET_OBJECTS:common_mountcephfs_objs>)
-target_link_libraries(common ${CMAKE_DL_LIBS})
+target_link_libraries(common ${CRYPTO_LIBS} ${CMAKE_DL_LIBS})
 
 set_source_files_properties(${CMAKE_SOURCE_DIR}/src/ceph_ver.c
   ${CMAKE_SOURCE_DIR}/src/common/version.cc
@@ -525,8 +525,7 @@ set(global_common_files
 add_library(global_common_objs OBJECT ${global_common_files})
 add_library(global STATIC ${libglobal_srcs}
   $<TARGET_OBJECTS:global_common_objs>)
-target_link_libraries(global common ${CMAKE_THREAD_LIBS_INIT} ${CRYPTO_LIBS}
-  ${EXTRALIBS})
+target_link_libraries(global common ${CMAKE_THREAD_LIBS_INIT} ${EXTRALIBS})
 
 # rados object classes
 add_subdirectory(cls)
@@ -1413,7 +1412,8 @@ if(${WITH_RADOSGW})
   target_include_directories(rgw_a PUBLIC ${FCGI_INCLUDE_DIR})
   target_link_libraries(rgw_a librados cls_rgw_client cls_refcount_client
     cls_log_client cls_statelog_client cls_timeindex_client cls_version_client
-    cls_replica_log_client cls_user_client curl global expat ${OPENLDAP_LIBS})
+    cls_replica_log_client cls_user_client curl global expat ${OPENLDAP_LIBS}
+    ${CRYPTO_LIBS})
 
   set(radosgw_srcs
     rgw/rgw_fcgi_process.cc