From: Kefu Chai Date: Fri, 27 May 2016 05:14:20 +0000 (+0800) Subject: cmake: add dl to libcommon X-Git-Tag: v11.0.0~390^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=49518a4f02feaff9a46d2f984be991ce219427fe;p=ceph.git cmake: add dl to libcommon PluginRegistry.cc uses dlopen() functions, so added it to libcommon. Signed-off-by: Kefu Chai --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 273cefdeb899..eda29f7771c6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -459,6 +459,7 @@ endif(${ENABLE_SHARED}) add_library(common STATIC ${libcommon_files} $ $) +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