util.cc is included by both librados and libcephfs, the `lvm` static
variable in `lsb_release_parse()` will be free twice by them. this
could lead to double free issue. and util.cc is not used by client at all, so
remove it from them.
Signed-off-by: Kefu Chai <kchai@redhat.com>
if(WITH_LIBCEPHFS)
add_subdirectory(client)
set(libcephfs_srcs libcephfs.cc)
- add_library(cephfs ${CEPH_SHARED} ${libcephfs_srcs}
- $<TARGET_OBJECTS:common_util_obj>)
+ add_library(cephfs ${CEPH_SHARED} ${libcephfs_srcs})
target_link_libraries(cephfs LINK_PRIVATE client
${CRYPTO_LIBS} ${EXTRALIBS})
if(ENABLE_SHARED)
RadosClient.cc)
add_library(librados ${CEPH_SHARED}
librados.cc
- $<TARGET_OBJECTS:common_util_obj>
$<TARGET_OBJECTS:librados_objs>)
add_dependencies(librados osdc)
if(WITH_LTTNG)
add_executable(ceph-objectstore-tool
ceph_objectstore_tool.cc
- RadosDump.cc
- $<TARGET_OBJECTS:common_util_obj>)
+ RadosDump.cc)
target_link_libraries(ceph-objectstore-tool osd os global ${Boost_PROGRAM_OPTIONS_LIBRARY} ${CMAKE_DL_LIBS} fuse)
install(TARGETS ceph-objectstore-tool DESTINATION bin)