From: LLVM Packaging Team Date: Sat, 31 Oct 2020 13:13:25 +0000 (+0000) Subject: lldb-soname X-Git-Tag: archive/raspbian/1%11.0.0-5+rpi1~1^2~60 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f89a2810bfc0a99c12dc0eeece9b72ac1ec368e9;p=llvm-toolchain-11.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)