From: LLVM Packaging Team Date: Mon, 31 Aug 2020 10:28:24 +0000 (+0100) Subject: lldb-soname X-Git-Tag: archive/raspbian/1%10.0.1-5+rpi1^2~59 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=76ba9146107d4e073c83c0cdc9b8bc424e6abfed;p=llvm-toolchain-10.git lldb-soname Gbp-Pq: Name lldb-soname.diff --- diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index e0ecf29b5..18716f4cb 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -19,7 +19,12 @@ if(LLDB_BUILD_FRAMEWORK) set(option_framework FRAMEWORK) endif() -add_lldb_library(liblldb SHARED ${option_framework} +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 @@ -159,7 +164,7 @@ endif() set_target_properties(liblldb PROPERTIES - VERSION ${LLDB_VERSION} + VERSION 1 ) if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") @@ -184,11 +189,6 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) if (MSVC AND LLDB_ENABLE_PYTHON) target_link_libraries(liblldb PRIVATE ${PYTHON_LIBRARIES}) endif() -else() - set_target_properties(liblldb - PROPERTIES - OUTPUT_NAME lldb - ) endif() if (NOT LLDB_BUILT_STANDALONE)