]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: remove unnecessary linked libs from libcephfs 10081/head
authorKefu Chai <kchai@redhat.com>
Fri, 1 Jul 2016 03:09:09 +0000 (11:09 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 Jul 2016 08:27:48 +0000 (16:27 +0800)
commit27cb0a121ee97989ac79fd58085c177f09d9f002
treeaed04843f0d75bc03ff16ed39f0d826b92db275e
parent85bb43e111692989d2296a389ce45377d2297d6f
cmake: remove unnecessary linked libs from libcephfs

* some of the libs shares the same .cc which has static C++ variables. if
  we link against the different libs sharing the same static C++
  variables, and the dtor of the C++ variables has side-effects, among
  other things, deallocates a memory chunk. then, we are in the trouble of
  double free. so "osd" lib is removed.
* some of the libs are referenced by the linked lib, so no need to link
  against them again. for example, BLKID_LIBRARIES are linked by
  libcommon, so we can remove it from the linked libs list.
* and lib "os" and "cls_references_objs" are not used by libcephfs at all,
  so remove them.

Fixes: http://tracker.ceph.com/issues/16556
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt