lldb-soname
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 26 Apr 2017 21:13:02 +0000 (21:13 +0000)
committerRaspbian forward porter <root@raspbian.org>
Wed, 26 Apr 2017 21:13:02 +0000 (21:13 +0000)
Gbp-Pq: Name lldb-soname.diff

lldb/source/API/CMakeLists.txt

index 2ed42cac062e2701f0c9dfea6e0fe92d823cdfa6..56f781de81f0d2af333d041bb6958cea139fe34f 100644 (file)
@@ -6,7 +6,12 @@ endif()
 # for liblldb to link against
 include(${LLDB_PROJECT_ROOT}/cmake/LLDBDependencies.cmake)
 
-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
@@ -80,7 +85,7 @@ target_link_libraries(liblldb PRIVATE
 
 set_target_properties(liblldb
   PROPERTIES
-  VERSION ${LLDB_VERSION}
+  VERSION 1
   )
 
 if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
@@ -107,11 +112,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 (LLDB_WRAP_PYTHON)