]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 15 Dec 2017 11:16:12 +0000 (19:16 +0800)
commit77f083fb35ae1bc9dc4ab9fb9adc17811b785932
tree2465456bfd3b71ab8c25fc36c2724c743d705985
parentf40a3fb873fd93cde7dad9d2c6e423587f832ca8
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>
(cherry picked from commit df9a59894291fe81e727babb631fb0e23cd1bbb0)
src/CMakeLists.txt