File lldb-cmake.patch of Package llvm9
Index: lldb-8.0.0rc3.src/source/Core/IOHandler.cpp =================================================================== --- lldb-8.0.0rc3.src.orig/source/Core/IOHandler.cpp +++ lldb-8.0.0rc3.src/source/Core/IOHandler.cpp @@ -10,8 +10,8 @@ #include "lldb/Core/IOHandler.h" #ifndef LLDB_DISABLE_CURSES -#include <curses.h> -#include <panel.h> +#include <ncurses/curses.h> +#include <ncurses/panel.h> #endif #if defined(__APPLE__) Index: lldb-8.0.0rc3.src/source/Host/CMakeLists.txt =================================================================== --- lldb-8.0.0rc3.src.orig/source/Host/CMakeLists.txt +++ lldb-8.0.0rc3.src/source/Host/CMakeLists.txt @@ -143,6 +143,8 @@ endif() set(EXTRA_LIBS) if (CMAKE_SYSTEM_NAME MATCHES "NetBSD") list(APPEND EXTRA_LIBS kvm) +elseif (CMAKE_SYSTEM_NAME MATCHES "Linux") + list(APPEND EXTRA_LIBS dl pthread) endif () if (APPLE) list(APPEND EXTRA_LIBS xml2)