lldb-soname
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 31 Aug 2020 10:28:24 +0000 (11:28 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 31 Aug 2020 10:28:24 +0000 (11:28 +0100)
Gbp-Pq: Name lldb-soname.diff

lldb/source/API/CMakeLists.txt

index e0ecf29b502b7c98ebe3fd4bfe0897540de39705..18716f4cbdb91533ae653ccf357478f99396cfd3 100644 (file)
@@ -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)