the WITH_SYSTEM_BOOST binaries are not built with BOOST_USE_VALGRIND, so
it probably isn't safe to define for the headers only
this flag is needed for teuthology testing, and the shaman builds use
WITH_SYSTEM_BOOST=OFF. so the better fix is to enable WITH_BOOST_VALGRIND
so BuildBoost.cmake will build the libraries with valgrind support and add
-DBOOST_USE_VALGRIND to the necessary targets
this change was merged in https://github.com/ceph/ceph-build/pull/1736
Fixes: https://tracker.ceph.com/issues/48963
Signed-off-by: Casey Bodley <cbodley@redhat.com>
endif(gperftools_FOUND)
endif(ALLOCATOR)
-if(${ALLOCATOR} STREQUAL "libc" AND WITH_SYSTEM_BOOST)
- # valgrind can only work with libc allocator
- # if system boost is not used, valgrind use should
- # be indicated via the WITH_BOOST_VALGRIND parameter
- add_definitions(-DBOOST_USE_VALGRIND)
-endif()
-
# Mingw generates incorrect entry points when using "-pie".
if(WIN32 OR (HAVE_LIBTCMALLOC AND WITH_STATIC_LIBSTDCXX))
set(EXE_LINKER_USE_PIE FALSE)