]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
src/test/fs: add more --copy-dt-needed-entries
authorDan Mick <dan.mick@redhat.com>
Tue, 7 Oct 2025 11:06:37 +0000 (04:06 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 7 Oct 2025 19:05:24 +0000 (12:05 -0700)
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 <dan.mick@redhat.com>
src/test/fs/CMakeLists.txt

index 69716ddeade5e060bf41d05540e74f6a834979b5..70940bdfeeda5e358dc318c34a595d7efd2aae2f 100644 (file)
@@ -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})