In particular, do not link intermediate dependencies nor librgw.so.2
with a custom allocator (normally tcmalloc).
This prevents illegal behavior due to mismatched allocators when run
under nfs-ganesha or other consumers.
Fixes: https://tracker.ceph.com/issues/63394
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit
c4b4ba554d285d9342cf16e4ce6782f18bd405ce)
${EXPAT_LIBRARIES}
${ARROW_LIBRARIES}
${ARROW_FLIGHT_LIBRARIES}
- ${ALLOC_LIBS}
PUBLIC
${LUA_LIBRARIES}
RapidJSON::RapidJSON
target_include_directories(radosgw SYSTEM PUBLIC "../rapidjson/include")
-target_link_libraries(radosgw PRIVATE ${rgw_libs} rgw_schedulers kmip)
+target_link_libraries(radosgw PRIVATE
+ ${rgw_libs}
+ rgw_schedulers
+ kmip
+ ${ALLOC_LIBS})
+
if(WITH_RADOSGW_BEAST_OPENSSL)
# used by rgw_asio_frontend.cc
target_link_libraries(radosgw PRIVATE OpenSSL::SSL)
rgw_token.cc)
add_executable(radosgw-token ${radosgw_token_srcs})
target_link_libraries(radosgw-token librados
- global ${ALLOC_LIBS})
+ global)
install(TARGETS radosgw-token DESTINATION bin)
set(radosgw_object_expirer_srcs