<div dir="ltr"><div><div><div><div><div>Now that autoconf is going away soon, I figured I'd try building using CMake.<br><br></div>I checked out llvm, cfe and lldb from the SVN server, and followed the basic build instructions. <br><br>cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/tools/llvm/svn_head -DLLVM_TARGETS_TO_BUILD="X86;CppBackend" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON ../llvm<br><br>Everything worked well, and in the end I got the following shared libraries:<br><br>/tools/llvm/svn_head/lib/BugpointPasses.so<br>/tools/llvm/svn_head/lib/libclang.so<br>/tools/llvm/svn_head/lib/libclang.so.3.9<br>/tools/llvm/svn_head/lib/liblldb.so<br>/tools/llvm/svn_head/lib/liblldb.so.3.9.0<br>/tools/llvm/svn_head/lib/libLTO.so<br>/tools/llvm/svn_head/lib/LLVMHello.so<br><br></div>However, with an autoconf build, I am used to seeing a libLLVM.so. From a 3.7.1 autoconf build:<br><br>/tools/llvm/3.7.1dbg/lib/BugpointPasses.so<br>/tools/llvm/3.7.1dbg/lib/libclang.so<br>/tools/llvm/3.7.1dbg/lib/liblldb.so<br>/tools/llvm/3.7.1dbg/lib/<a href="http://libLLVM-3.7.1.so">libLLVM-3.7.1.so</a><br>/tools/llvm/3.7.1dbg/lib/<a href="http://libLLVM-3.7.so">libLLVM-3.7.so</a><br>/tools/llvm/3.7.1dbg/lib/libLTO.so<br>/tools/llvm/3.7.1dbg/lib/LLVMHello.so<br><br></div>I'd like to get libLLVM with the CMake build as well. But if I try -DBUILD_SHARED_LIBS=ON, lldb-server fails to link properly and I cannot install anything.<br><br></div>Is this a bug in the make scripts for lldb-server?<br></div>How can I get libLLVM.so in addition to liblldb.so?<br><br></div>