[Lldb-commits] [lldb] r202284 - Add libexecinfo for backtrace() on FreeBSD
Ed Maste
emaste at freebsd.org
Wed Feb 26 10:21:43 PST 2014
Author: emaste
Date: Wed Feb 26 12:21:42 2014
New Revision: 202284
URL: http://llvm.org/viewvc/llvm-project?rev=202284&view=rev
Log:
Add libexecinfo for backtrace() on FreeBSD
Modified:
lldb/trunk/source/CMakeLists.txt
Modified: lldb/trunk/source/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/CMakeLists.txt?rev=202284&r1=202283&r2=202284&view=diff
==============================================================================
--- lldb/trunk/source/CMakeLists.txt (original)
+++ lldb/trunk/source/CMakeLists.txt Wed Feb 26 12:21:42 2014
@@ -143,6 +143,11 @@ set(LLDB_SYSTEM_LIBS)
if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
list(APPEND LLDB_SYSTEM_LIBS edit panel ncurses)
endif()
+# On FreeBSD backtrace() is provided by libexecinfo, not libc.
+if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
+ list(APPEND LLDB_SYSTEM_LIBS execinfo)
+endif()
+
if (NOT LLDB_DISABLE_PYTHON)
list(APPEND LLDB_SYSTEM_LIBS ${PYTHON_LIBRARIES})
endif()
More information about the lldb-commits
mailing list