Index: tools/lldb-server/CMakeLists.txt =================================================================== --- tools/lldb-server/CMakeLists.txt +++ tools/lldb-server/CMakeLists.txt @@ -27,9 +27,7 @@ ) target_link_libraries(lldb-server liblldb) - if (HAVE_LIBPTHREAD) - target_link_libraries(lldb-server pthread) - endif () + target_link_libraries(lldb-server ${LLDB_SYSTEM_LIBS}) else() add_lldb_executable(lldb-server lldb-gdbserver.cpp