[lldb-dev] lldb-server link failure with shared library configuration
Peeter Joot via lldb-dev
lldb-dev at lists.llvm.org
Tue Aug 29 16:50:40 PDT 2017
Hi Tamas,
I was able to use your suggestion as follows:
diff --git a/source/Expression/CMakeLists.txt b/source/Expression/CMakeLists.txt
index 7d9643a..b53b095 100644
--- a/source/Expression/CMakeLists.txt
+++ b/source/Expression/CMakeLists.txt
@@ -2,6 +2,12 @@ if(NOT LLDB_BUILT_STANDALONE)
set(tablegen_deps intrinsics_gen)
endif()
+set(LLDB_EXP_DEPS)
+
+if(BUILD_SHARED_LIBS)
+ list(APPEND LLDB_EXP_DEPS LLVMRuntimeDyld)
+endif()
+
add_lldb_library(lldbExpression
DiagnosticManager.cpp
DWARFExpression.cpp
@@ -30,6 +36,7 @@ add_lldb_library(lldbExpression
lldbTarget
lldbUtility
lldbPluginExpressionParserClang
+ ${LLDB_EXP_DEPS}
LINK_COMPONENTS
Core
and was able to successfully build the lldb-server.
--
Peeter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170829/c089d4ab/attachment.html>
More information about the lldb-dev
mailing list