]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake,make-dist: build gperftools if WITH_STATIC_LIBSTDCXX
authorKefu Chai <kchai@redhat.com>
Wed, 25 Jul 2018 10:46:55 +0000 (18:46 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 29 Jul 2018 13:25:52 +0000 (21:25 +0800)
commita6c73b6ac1d81cc9f467aa38e5afb146d5dea6c2
tree47753290b5e6e147126e7643ef0a372154b875d1
parenta61493062c04c2a0891d975187285796480e9131
cmake,make-dist: build gperftools if WITH_STATIC_LIBSTDCXX

we could create a mini project to build a shared library, and use
try_compile() to test if the found gperftools is compiled with -fPIC.
but as we are targeting mostly xenial when enabling
WITH_STATIC_LIBSTDCXX, and google-perftools on xenial by default
is built without -fPIC. so let's keep it simple.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
cmake/modules/Buildgperftools.cmake [new file with mode: 0644]
make-dist
src/perfglue/CMakeLists.txt