From: LLVM Packaging Team Date: Tue, 7 Jul 2020 16:18:00 +0000 (+0100) Subject: lldb-soname X-Git-Tag: archive/raspbian/1%9.0.1-13+rpi1^2~65 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1b48bdad96f0a8cf2fdedf71476ecd29e4bd91b9;p=llvm-toolchain-9.git lldb-soname Gbp-Pq: Name lldb-soname.diff --- diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index d93b8b5e3..cccc49f3a 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -13,7 +13,12 @@ if(LLDB_BUILD_FRAMEWORK) set(option_install_prefix INSTALL_PREFIX ${LLDB_FRAMEWORK_INSTALL_DIR}) endif() -add_lldb_library(liblldb SHARED +set(output_name lldb) +if (CMAKE_SYSTEM_NAME MATCHES "Windows") + set(output_name liblldb) +endif() + +add_lldb_library(liblldb SHARED OUTPUT_NAME ${output_name} SONAME SBAddress.cpp SBAttachInfo.cpp SBBlock.cpp @@ -130,7 +135,7 @@ endif() set_target_properties(liblldb PROPERTIES - VERSION ${LLDB_VERSION} + VERSION 1 ) if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") @@ -155,11 +160,6 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) if (MSVC AND NOT LLDB_DISABLE_PYTHON) target_link_libraries(liblldb PRIVATE ${PYTHON_LIBRARY}) endif() -else() - set_target_properties(liblldb - PROPERTIES - OUTPUT_NAME lldb - ) endif() if (NOT LLDB_BUILT_STANDALONE)