]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #63719 from batrick/wip-71553-tentacle
authorKotresh HR <khiremat@redhat.com>
Mon, 28 Jul 2025 10:03:07 +0000 (15:33 +0530)
committerGitHub <noreply@github.com>
Mon, 28 Jul 2025 10:03:07 +0000 (15:33 +0530)
tentacle: test/libcephfs: copy DT_NEEDED entries from input libraries

1  2 
src/test/libcephfs/CMakeLists.txt

index 6a75dd2578b1e7a653cff80b7749bbc96a756d16,2573fa08f66c9452418604d0228fcff703b2b7f9..272c2669819c4d4ef8978ed5dadf1ae231ce065b
@@@ -119,22 -156,10 +156,25 @@@ if(WITH_LIBCEPHFS
      ${UNITTEST_LIBS}
      ${EXTRALIBS}
      ${CMAKE_DL_LIBS}
-     )
+   )
+   if(NOT WIN32)
+     target_link_options(ceph_test_libcephfs_access PRIVATE -Wl,--copy-dt-needed-entries)
+   endif()
    install(TARGETS ceph_test_libcephfs_access
      DESTINATION ${CMAKE_INSTALL_BINDIR})
 +
 +  add_executable(ceph_test_libcephfs_perfcounters
 +    perfcounters.cc
 +    main.cc
 +  )
 +  target_link_libraries(ceph_test_libcephfs_perfcounters
 +    ceph-common
 +    cephfs
 +    librados
 +    ${UNITTEST_LIBS}
 +    ${EXTRALIBS}
 +    ${CMAKE_DL_LIBS}
 +    )
 +  install(TARGETS ceph_test_libcephfs_perfcounters
 +    DESTINATION ${CMAKE_INSTALL_BINDIR})
  endif(WITH_LIBCEPHFS)