[Lldb-commits] [PATCH] Fix for lldb-platform linking error on OSX/CMake

Vince Harron vharron at google.com
Sun Jan 11 10:43:12 PST 2015


Hi bobcam01, ovyalov, sivachandra,

Undefined symbols for architecture x86_64:
  "_liblldb_coreVersionString", referenced from:
      lldb_private::GetVersion() in lldb.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[6/12] Linking CXX shared library lib/liblldb.3.6.0.dylib
ninja: build stopped: subcommand failed.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6921

Files:
  tools/lldb-platform/CMakeLists.txt

Index: tools/lldb-platform/CMakeLists.txt
===================================================================
--- tools/lldb-platform/CMakeLists.txt
+++ tools/lldb-platform/CMakeLists.txt
@@ -22,8 +22,14 @@
   lldb-platform.cpp
   ../../source/lldb-log.cpp
   ../../source/lldb.cpp
+  ${LLDB_WRAP_PYTHON}
+  ${LLDB_VERS_GENERATED_FILE}
   )
 
+if (LLDB_WRAP_PYTHON OR LLDB_VERS_GENERATED_FILE)
+  add_dependencies(lldb-platform swig_wrapper)
+endif()
+
 # The Darwin linker doesn't understand --start-group/--end-group.
 if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND NOT "${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
   target_link_libraries(lldb-platform

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6921.17990.patch
Type: text/x-patch
Size: 645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150111/3c9d16aa/attachment.bin>


More information about the lldb-commits mailing list