From: Dan Mick Date: Tue, 7 Oct 2025 11:06:37 +0000 (-0700) Subject: src/test/fs: add more --copy-dt-needed-entries X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e391bb0fdbb7d2e55666105d6754b8a36b8c363e;p=ceph.git src/test/fs: add more --copy-dt-needed-entries See comment in src/test/libcephfs/CMakeLists.txt. I don't know why bookworm tweaks this issue so that it occurs on two more test binaries, but this fix works around the link error in the previously-discovered way Signed-off-by: Dan Mick --- diff --git a/src/test/fs/CMakeLists.txt b/src/test/fs/CMakeLists.txt index 69716ddeade5..70940bdfeeda 100644 --- a/src/test/fs/CMakeLists.txt +++ b/src/test/fs/CMakeLists.txt @@ -13,6 +13,9 @@ if(${WITH_CEPHFS}) ceph-common cephfs ) + if(NOT WIN32) + target_link_options(ceph_test_trim_caps PRIVATE -Wl,--copy-dt-needed-entries) + endif() install(TARGETS ceph_test_trim_caps DESTINATION ${CMAKE_INSTALL_BINDIR}) add_executable(ceph_test_ino_release_cb @@ -22,5 +25,8 @@ if(${WITH_CEPHFS}) ceph-common cephfs ) + if(NOT WIN32) + target_link_options(ceph_test_ino_release_cb PRIVATE -Wl,--copy-dt-needed-entries) + endif() install(TARGETS ceph_test_ino_release_cb DESTINATION ${CMAKE_INSTALL_BINDIR}) endif(${WITH_CEPHFS})