From e391bb0fdbb7d2e55666105d6754b8a36b8c363e Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Tue, 7 Oct 2025 04:06:37 -0700 Subject: [PATCH] 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 --- src/test/fs/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/fs/CMakeLists.txt b/src/test/fs/CMakeLists.txt index 69716ddeade5e..70940bdfeeda5 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}) -- 2.39.5