]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge PR #62865 into main
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 4 Jun 2025 12:42:39 +0000 (08:42 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Wed, 4 Jun 2025 12:42:39 +0000 (08:42 -0400)
* refs/pull/62865/head:
test/libcephfs: copy DT_NEEDED entries from input libraries
test/fs: only add libcephfs as library dependency
test/client: do not depend on libcephfs

Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
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)