From: LLVM Packaging Team Date: Tue, 25 Apr 2017 17:46:34 +0000 (+0000) Subject: lldb-soname X-Git-Tag: archive/raspbian/1%3.8.1-23+rpi1~3^2~29 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e710dd8e5dc1be49b9e32fb70c028e0362d830ae;p=llvm-toolchain-3.8.git lldb-soname Gbp-Pq: Name lldb-soname.diff --- diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile index 02959354..aa005195 100644 --- a/lldb/lib/Makefile +++ b/lldb/lib/Makefile @@ -16,6 +16,7 @@ LIBRARYNAME = lldb NO_BUILD_ARCHIVE = 1 LINK_LIBS_IN_SHARED = 1 SHARED_LIBRARY = 1 +SONAME_EXTENSION = 1 ifeq (,$(findstring -DLLDB_DISABLE_PYTHON,$(CXXFLAGS))) PYTHON_CONFIG?= python-config @@ -191,7 +192,7 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD)) LLVMLibsOptions += -Wl,--no-undefined # Link in python LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt -ledit -lncurses -lpanel -lpthread - LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT) + LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT).$(SONAME_EXTENSION) ifneq (,$(filter $(shell dpkg-architecture -qDEB_HOST_ARCH), mips mipsel powerpc powerpcspe)) # Link GCC atomic helper library LLVMLibsOptions += -latomic diff --git a/lldb/scripts/Python/finishSwigPythonLLDB.py b/lldb/scripts/Python/finishSwigPythonLLDB.py index e9a614d5..f75b27f3 100644 --- a/lldb/scripts/Python/finishSwigPythonLLDB.py +++ b/lldb/scripts/Python/finishSwigPythonLLDB.py @@ -379,7 +379,7 @@ def make_symlink_liblldb(vDictArgs, vstrFrameworkPythonDir, vstrLiblldbFileName, if eOSType == utilsOsType.EnumOsType.Darwin: strLibFileExtn = ".dylib" else: - strLibFileExtn = ".so" + strLibFileExtn = "-3.8.so.1" strSrc = os.path.join(vstrLldbLibDir, "liblldb" + strLibFileExtn) bOk, strErrMsg = make_symlink(vDictArgs, vstrFrameworkPythonDir, strSrc, strTarget) diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index 06a26e17..80c8f9c7 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -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 @@ -78,7 +83,7 @@ target_link_libraries(liblldb PRIVATE set_target_properties(liblldb PROPERTIES - VERSION ${LLDB_VERSION} + VERSION 1 ) if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") @@ -105,11 +110,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)