llvm-toolchain/debian/patches/lldb-soname.diff
2016-09-22 09:25:57 +00:00

40 lines
1.2 KiB
Diff

Index: llvm-toolchain-snapshot_4.0~svn282142/lldb/source/API/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_4.0~svn282142.orig/lldb/source/API/CMakeLists.txt
+++ llvm-toolchain-snapshot_4.0~svn282142/lldb/source/API/CMakeLists.txt
@@ -12,7 +12,12 @@ if (LLDB_BUILD_FRAMEWORK AND NOT APPLE)
message(FATAL_ERROR "LLDB.framework cannot be generated unless targeting Apple platforms.")
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
@@ -87,7 +92,7 @@ target_link_libraries(liblldb PRIVATE
set_target_properties(liblldb
PROPERTIES
- VERSION ${LLDB_VERSION}
+ VERSION 1
)
if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
@@ -114,11 +119,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)