]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: add dl to libcommon
authorKefu Chai <kchai@redhat.com>
Fri, 27 May 2016 05:14:20 +0000 (13:14 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 27 May 2016 16:34:52 +0000 (00:34 +0800)
PluginRegistry.cc uses dlopen() functions, so added it to libcommon.

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

index 273cefdeb899785133d75f30b262dd9032cf7d2c..eda29f7771c647cbe4ab60baf66390ab7c3713d1 100644 (file)
@@ -459,6 +459,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})
 
 set_source_files_properties(${CMAKE_SOURCE_DIR}/src/ceph_ver.c
   ${CMAKE_SOURCE_DIR}/src/common/version.cc