<div>I've built lldb in tree on Linux (RHEL 7.3) with a shared library configuration:<br></div><p class="p1"><span class="s1">CC=/usr/bin/clang CXX=/usr/bin/clang++ \</span><br></p><div><span class="s1">cmake -G Ninja ../llvm \</span><br></div><p class="p1"><span class="s1"><b>-DBUILD_SHARED_LIBS=true \</b></span><br></p><p class="p1">...</p><div>The lldb-server binary does not link for me, as I get unresolved symbols including:<br></div><div><br></div><p class="p1"><span class="s1">llvm::RuntimeDyld::MemoryManager::anchor()</span><br></p><div><br></div><div>I've worked around this by changing the link rules for lldb-server like so:<br></div><p class="p1"><span class="s1">diff --git a/tools/lldb-server/CMakeLists.txt b/tools/lldb-server/CMakeLists.txt</span><br></p><p class="p2"><span class="s1">index f8c57cb..35311a8 100644</span><br></p><p class="p1"><span class="s1">--- a/tools/lldb-server/CMakeLists.txt</span><br></p><p class="p1"><span class="s1">+++ b/tools/lldb-server/CMakeLists.txt</span><br></p><p class="p3"><span class="s2">@@ -82,6 +85,7 @@</span><span class="s1"> add_lldb_tool(lldb-server INCLUDE_IN_FRAMEWORK</span><br></p><p class="p2"><span class="s1"><span class="Apple-converted-space">       </span>lldbHost</span><br></p><p class="p2"><span class="s1"><span class="Apple-converted-space">       </span>lldbInitialization</span><br></p><p class="p2"><span class="s1"><span class="Apple-converted-space">       </span>lldbInterpreter</span><br></p><p class="p4"><span class="s1">+<span class="Apple-converted-space">      </span>LLVMRuntimeDyld</span><br></p><p class="p2"><span class="s1"><span class="Apple-converted-space">       </span>${LLDB_PLUGINS}</span><br></p><p class="p2"><span class="s1"><span class="Apple-converted-space">       </span>${LLDB_SYSTEM_LIBS}</span><br></p><div><br></div><div>Is this a known issue, and what would the proper fix for this look like?<br></div><div><br></div><div class="protonmail_signature_block "><div class="protonmail_signature_block-user "><div>--<br></div><div>Peeter<br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div>