]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: link libcommon with libstdc++ statically if WITH_STATIC_LIBSTDCXX
authorKefu Chai <kchai@redhat.com>
Thu, 14 Dec 2017 07:07:30 +0000 (15:07 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 14 Dec 2017 11:01:34 +0000 (19:01 +0800)
commitdf9a59894291fe81e727babb631fb0e23cd1bbb0
tree3002703891b1a521d3c9d40f93e6c71207500a98
parent4ed4d4a3b963042ef951b673f5fa75e14c5ab5f1
cmake: link libcommon with libstdc++ statically if WITH_STATIC_LIBSTDCXX

this matches the linkage of libceph-common, because valgrind reports
Leak_StillReachable if daemons are linked against libceph-common, will
link daemons against common instead, and let common link libstdc++
statically, if WITH_STATIC_LIBSTDCXX=ON.

this change also reverts e6695bb6

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