--- tools/lldb/cmake/LLDBDependencies.cmake.orig 2015-07-08 18:07:13 UTC +++ tools/lldb/cmake/LLDBDependencies.cmake @@ -30,6 +30,7 @@ set( LLDB_USED_LIBS lldbPluginProcessUtility lldbPluginPlatformAndroid lldbPluginPlatformGDB + lldbPluginPlatformBSDSUniX lldbPluginPlatformFreeBSD lldbPluginPlatformKalimba lldbPluginPlatformLinux @@ -90,6 +91,16 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Linux" ) ) endif () +# BSDSUniX-only libraries +if ( CMAKE_SYSTEM_NAME MATCHES "BSDSUniX" ) + list(APPEND LLDB_USED_LIBS + lldbPluginProcessBSDSUniX + lldbPluginProcessPOSIX + lldbPluginProcessElfCore + lldbPluginJITLoaderGDB + ) +endif () + # FreeBSD-only libraries if ( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" ) list(APPEND LLDB_USED_LIBS @@ -143,6 +154,10 @@ if (NOT CMAKE_SYSTEM_NAME MATCHES "Windo list(APPEND LLDB_SYSTEM_LIBS panel ncurses) endif() endif() +# On BSDSUniX backtrace() is provided by libexecinfo, not libc. +if (CMAKE_SYSTEM_NAME MATCHES "BSDSUniX") + list(APPEND LLDB_SYSTEM_LIBS execinfo) +endif() # On FreeBSD backtrace() is provided by libexecinfo, not libc. if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") list(APPEND LLDB_SYSTEM_LIBS execinfo)