summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2013-06-04 15:59:01 +0000
committerDaniel Malea <daniel.malea@intel.com>2013-06-04 15:59:01 +0000
commit6f0a5edb3f9fb635c7081c633ab0f433da836123 (patch)
treec1d18e009f1dcf9e73fd70993dd895cfd2e2a925
parentc31b3524cb60481f1746c1faa1cb5eb31c04c0df (diff)
downloadbcm5719-llvm-6f0a5edb3f9fb635c7081c633ab0f433da836123.tar.gz
bcm5719-llvm-6f0a5edb3f9fb635c7081c633ab0f433da836123.zip
More minor FreeBSD fixes.
- link libexecinfo (as libc is missing backtrace()) - enable FreeBSD-specific plugins Patch by Ed Maste! llvm-svn: 183233
-rw-r--r--lldb/CMakeLists.txt5
-rw-r--r--lldb/source/CMakeLists.txt9
-rw-r--r--lldb/source/Plugins/Process/CMakeLists.txt2
3 files changed, 15 insertions, 1 deletions
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt
index 394f6c300b7..f9efaa9243a 100644
--- a/lldb/CMakeLists.txt
+++ b/lldb/CMakeLists.txt
@@ -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)
diff --git a/lldb/source/CMakeLists.txt b/lldb/source/CMakeLists.txt
index efa7e7cf83b..595acf07f0e 100644
--- a/lldb/source/CMakeLists.txt
+++ b/lldb/source/CMakeLists.txt
@@ -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)
diff --git a/lldb/source/Plugins/Process/CMakeLists.txt b/lldb/source/Plugins/Process/CMakeLists.txt
index 274f4db6179..cf12bcdf34b 100644
--- a/lldb/source/Plugins/Process/CMakeLists.txt
+++ b/lldb/source/Plugins/Process/CMakeLists.txt
@@ -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)
OpenPOWER on IntegriCloud