Index: tools/lldb-server/CMakeLists.txt =================================================================== --- tools/lldb-server/CMakeLists.txt +++ tools/lldb-server/CMakeLists.txt @@ -26,10 +26,19 @@ LLDBServerUtilities.cpp ) - target_link_libraries(lldb-server liblldb) + target_link_libraries(lldb-server liblldb dl) if (HAVE_LIBPTHREAD) target_link_libraries(lldb-server pthread) endif () + if (LIBXML2_FOUND) + target_link_libraries(lldb-server xml2) + endif() + if (NOT LLDB_DISABLE_LIBEDIT) + target_link_libraries(lldb-server edit) + endif() + if (NOT LLDB_DISABLE_CURSES) + target_link_libraries(lldb-server ncurses panel) + endif() else() add_lldb_executable(lldb-server lldb-gdbserver.cpp