More minor FreeBSD fixes.

- link libexecinfo (as libc is missing backtrace())
- enable FreeBSD-specific plugins

Patch by Ed Maste!

llvm-svn: 183233
This commit is contained in:
Daniel Malea 2013-06-04 15:59:01 +00:00
parent c31b3524cb
commit 6f0a5edb3f
3 changed files with 15 additions and 1 deletions

View File

@ -246,6 +246,11 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
${DEBUG_SYMBOLS_LIBRARY})
endif()
# On FreeBSD, link libexecinfo because libc is missing backtrace()
if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
list(APPEND system_libs execinfo)
endif()
#add_subdirectory(include)
add_subdirectory(docs)
add_subdirectory(scripts)

View File

@ -92,6 +92,15 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Linux" )
)
endif ()
# FreeBSD-only libraries
if ( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
list(APPEND LLDB_USED_LIBS
lldbHostFreeBSD
lldbPluginProcessFreeBSD
lldbPluginProcessPOSIX
)
endif ()
# Darwin-only libraries
if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
set(LLDB_VERS_GENERATED_FILE ${LLDB_BINARY_DIR}/source/LLDB_vers.c)

View File

@ -2,7 +2,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
add_subdirectory(Linux)
add_subdirectory(POSIX)
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
#add_subdirectory(FreeBSD)
add_subdirectory(FreeBSD)
add_subdirectory(POSIX)
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
add_subdirectory(MacOSX-Kernel)