Skip to content

Commit 5f6f5b0

Browse files
committed
cmake: replace -ldl with ${CMAKE_DL_LIBS}
Needed for: #32
1 parent 846802e commit 5f6f5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ find_library(LPTHREAD pthread)
4040

4141
add_executable(rp ${REPLICATOR_SRC})
4242
set_target_properties(rp PROPERTIES COMPILE_FLAGS "-std=c++11" LINK_FLAGS "-Wl,-s -Wl,--gc-sections" OUTPUT_NAME replicatord)
43-
target_link_libraries(rp rt dl tnt slave_a yaml-cpp ${LPTHREAD})
43+
target_link_libraries(rp rt tnt slave_a yaml-cpp ${LPTHREAD} ${CMAKE_DL_LIBS})
4444

4545
install(TARGETS rp RUNTIME DESTINATION sbin)
4646
install(FILES replicatord.yml DESTINATION etc)

0 commit comments

Comments
 (0)