From: Casey Bodley Date: Thu, 13 Apr 2023 16:26:44 +0000 (-0700) Subject: cmake/rgw: librgw tests depend on ALLOC_LIBS X-Git-Tag: v17.2.8~160^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7be0baafd7954d88173e1edad782c829513a7bf;p=ceph.git cmake/rgw: librgw tests depend on ALLOC_LIBS somehow this stops tcmalloc from crashing on ubuntu 20.04 Fixes: https://tracker.ceph.com/issues/59269 Signed-off-by: Casey Bodley (cherry picked from commit d5f97e6543906d5be898b24a1c10269ace309c76) --- diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index ebee8e5c8289..bf49f67f9a4a 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -282,6 +282,7 @@ target_link_libraries(ceph_test_librgw_file ceph-common ${UNITTEST_LIBS} ${EXTRALIBS} + ${ALLOC_LIBS} ) install(TARGETS ceph_test_librgw_file DESTINATION ${CMAKE_INSTALL_BINDIR}) @@ -295,6 +296,7 @@ target_link_libraries(ceph_test_librgw_file_cd ceph-common ${UNITTEST_LIBS} ${EXTRALIBS} + ${ALLOC_LIBS} ) install(TARGETS ceph_test_librgw_file_cd DESTINATION ${CMAKE_INSTALL_BINDIR}) @@ -308,6 +310,7 @@ target_link_libraries(ceph_test_librgw_file_gp ceph-common ${UNITTEST_LIBS} ${EXTRALIBS} + ${ALLOC_LIBS} ) install(TARGETS ceph_test_librgw_file_gp DESTINATION ${CMAKE_INSTALL_BINDIR}) @@ -322,6 +325,7 @@ target_link_libraries(ceph_test_librgw_file_nfsns ceph-common ${UNITTEST_LIBS} ${EXTRALIBS} + ${ALLOC_LIBS} ) target_link_libraries(ceph_test_librgw_file_nfsns spawn) install(TARGETS ceph_test_librgw_file_nfsns DESTINATION ${CMAKE_INSTALL_BINDIR}) @@ -336,6 +340,7 @@ target_link_libraries(ceph_test_librgw_file_aw ceph-common ${UNITTEST_LIBS} ${EXTRALIBS} + ${ALLOC_LIBS} ) install(TARGETS ceph_test_librgw_file_aw DESTINATION ${CMAKE_INSTALL_BINDIR}) @@ -350,6 +355,7 @@ target_link_libraries(ceph_test_librgw_file_marker ceph-common ${UNITTEST_LIBS} ${EXTRALIBS} + ${ALLOC_LIBS} ) target_link_libraries(ceph_test_librgw_file_marker spawn) install(TARGETS ceph_test_librgw_file_marker DESTINATION ${CMAKE_INSTALL_BINDIR}) @@ -365,6 +371,7 @@ target_link_libraries(ceph_test_librgw_file_xattr ceph-common ${UNITTEST_LIBS} ${EXTRALIBS} + ${ALLOC_LIBS} ) target_link_libraries(ceph_test_librgw_file_xattr spawn)