endif(INTEL_SSE4_1)
-set(EXTRALIBS uuid rt dl ${ATOMIC_OPS_LIBRARIES})
+set(EXTRALIBS uuid rt ${CMAKE_DL_LIBS} ${ATOMIC_OPS_LIBRARIES})
if(${WITH_PROFILER})
list(APPEND EXTRALIBS profiler)
tools/ceph_objectstore_tool.cc
tools/RadosDump.cc
$<TARGET_OBJECTS:common_util_obj>)
-target_link_libraries(ceph-objectstore-tool osd os global ${Boost_PROGRAM_OPTIONS_LIBRARY} fuse dl)
+target_link_libraries(ceph-objectstore-tool osd os global ${Boost_PROGRAM_OPTIONS_LIBRARY} fuse ${CMAKE_DL_LIBS})
install(TARGETS ceph-objectstore-tool DESTINATION bin)
$<TARGET_OBJECTS:global_common_objs>
$<TARGET_OBJECTS:heap_profiler_objs>
$<TARGET_OBJECTS:common_util_obj>)
-target_link_libraries(osd dl leveldb ${ALLOC_LIBS})
+target_link_libraries(osd ${CMAKE_DL_LIBS} leveldb ${ALLOC_LIBS})
if(WITH_LTTNG)
add_dependencies(osd osd-tp)
endif()
endif (HAVE_BETTER_YASM_ELF64)
add_library(erasure_code STATIC ErasureCodePlugin.cc)
-target_link_libraries(erasure_code dl)
+target_link_libraries(erasure_code ${CMAKE_DL_LIBS})
add_dependencies(erasure_code ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)
add_library(erasure_code_objs OBJECT ErasureCode.cc)
add_executable(ceph_erasure_code_benchmark
${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
ceph_erasure_code_benchmark.cc)
-target_link_libraries(ceph_erasure_code_benchmark osd common ${Boost_PROGRAM_OPTIONS_LIBRARY} global dl)
+target_link_libraries(ceph_erasure_code_benchmark osd common ${Boost_PROGRAM_OPTIONS_LIBRARY} global ${CMAKE_DL_LIBS})
install(TARGETS ceph_erasure_code_benchmark
DESTINATION bin)
add_executable(ceph_erasure_code_non_regression ceph_erasure_code_non_regression.cc)
-target_link_libraries(ceph_erasure_code_non_regression osd common ${Boost_PROGRAM_OPTIONS_LIBRARY} global dl)
+target_link_libraries(ceph_erasure_code_non_regression osd common ${Boost_PROGRAM_OPTIONS_LIBRARY} global ${CMAKE_DL_LIBS})
add_executable(ceph_erasure_code ceph_erasure_code.cc)
-target_link_libraries(ceph_erasure_code osd common ${Boost_PROGRAM_OPTIONS_LIBRARY} global dl)
+target_link_libraries(ceph_erasure_code osd common ${Boost_PROGRAM_OPTIONS_LIBRARY} global ${CMAKE_DL_LIBS})
install(TARGETS ceph_erasure_code
DESTINATION bin)
target_link_libraries(unittest_erasure_code_plugin
global
osd
- dl
+ ${CMAKE_DL_LIBS}
ec_example
common
)
common
ec_isa
crush
- dl
+ ${CMAKE_DL_LIBS}
erasure_code
)
endif(HAVE_BETTER_YASM_ELF64)
target_link_libraries(unittest_erasure_code_lrc
global
osd
- dl
+ ${CMAKE_DL_LIBS}
ec_lrc
common
)
target_link_libraries(unittest_erasure_code_plugin_lrc
global
osd
- dl
+ ${CMAKE_DL_LIBS}
ec_lrc
ec_jerasure_generic
common)
target_link_libraries(unittest_erasure_code_plugin_shec
global
osd
- dl
+ ${CMAKE_DL_LIBS}
common
ec_shec_generic)
add_dependencies(unittest_erasure_code_plugin_shec
target_link_libraries(unittest_erasure_code_example
global
osd
- dl
+ ${CMAKE_DL_LIBS}
common
erasure_code
${UNITTEST_LIBS}
target_link_libraries(unittest_erasure_code_shec
global
osd
- dl
+ ${CMAKE_DL_LIBS}
common
ec_shec_generic
)
target_link_libraries(unittest_erasure_code_shec_all
global
osd
- dl
+ ${CMAKE_DL_LIBS}
common
ec_shec_generic
)
target_link_libraries(unittest_erasure_code_shec_thread
global
osd
- dl
+ ${CMAKE_DL_LIBS}
common
ec_shec_generic
)
target_link_libraries(unittest_erasure_code_shec_arguments
global
osd
- dl
+ ${CMAKE_DL_LIBS}
common
ec_shec_generic
)
TestOSDScrub.cc
)
add_ceph_unittest(unittest_osdscrub ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osdscrub)
-target_link_libraries(unittest_osdscrub osd global dl os mon ${BLKID_LIBRARIES})
+target_link_libraries(unittest_osdscrub osd global ${CMAKE_DL_LIBS} os mon ${BLKID_LIBRARIES})
# unittest_pglog
add_executable(unittest_pglog
TestPGLog.cc
)
add_ceph_unittest(unittest_pglog ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_pglog)
-target_link_libraries(unittest_pglog osd global dl ${BLKID_LIBRARIES})
+target_link_libraries(unittest_pglog osd global ${CMAKE_DL_LIBS} ${BLKID_LIBRARIES})
# unittest_hitset
add_executable(unittest_hitset
${header_dir}/${tp}.c)
endforeach()
add_library(${name} SHARED ${srcs})
- target_link_libraries(${name} ${LTTNG_LIBRARIES} dl)
+ target_link_libraries(${name} ${LTTNG_LIBRARIES} ${CMAKE_DL_LIBS})
string(REGEX MATCH "^[0-9]+" soversion ${version})
set_target_properties(${name} PROPERTIES
OUTPUT_NAME ${name}