[lldb-dev] Additional minor FreeBSD fixes

Ed Maste emaste at freebsd.org
Mon Jun 3 16:24:29 PDT 2013


These are the final two changes I needed to get liblldb built on FreeBSD.

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt      (revision 183150)
+++ CMakeLists.txt      (working copy)
@@ -2,7 +2,7 @@
   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)
Index: source/CMakeLists.txt
===================================================================
--- source/CMakeLists.txt       (revision 183150)
+++ source/CMakeLists.txt       (working copy)
@@ -92,6 +92,15 @@
     )
 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)



More information about the lldb-dev mailing list