From b64dd9e833cb1b3c57c626da201843dcf30dd4b5 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 26 May 2016 20:54:03 +0800 Subject: [PATCH] cmake: add missing obj to libosd * add common_util_obj as OSD::_collect_metadata() is calling collect_sys_info(), which lives in util.c * add global_common_objs as OSD::_committed_osd_maps() is calling queue_async_signal(), which lives in signal_handler.cc Signed-off-by: Kefu Chai --- src/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 51bcd9c78785e..273cefdeb8997 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -887,8 +887,12 @@ set(osd_srcs set(osd_mon_files mon/Monitor.cc) add_library(osd_mon_objs OBJECT ${osd_mon_files}) -add_library(osd STATIC ${osd_srcs} $ - $ $) +add_library(osd STATIC ${osd_srcs} + $ + $ + $ + $ + $) target_link_libraries(osd dl leveldb ${ALLOC_LIBS}) if(WITH_LTTNG) add_dependencies(osd osd-tp) -- 2.39.5