llvm-toolchain/debian/patches/18-soname.patch
Sylvestre Ledru 3dd601ae0d * sync from 1:3.4.2-9~exp1
* libclang-3.5.so should be used instead libclang.so. Update the soname
  to match the new lib name (Closes: #759538)
* Rename liblldb.so to liblldb-3.5.so + update of the soname.
* python-clang-3.5 description updated
* liblldb-3.5 and python-lldb-3.5 added
* lldb-3.5-dev renamed to liblldb-3.5-dev to match the previous changes
* Manpages for llvm-ranlib, clang-apply-replacements, pp-trace and clang-tidy
  added
* clang-3.5 should depends on binutils (for ld, at least)
  (Closes: #751030)
* Try to bring back lldb-3.4-dev on mips & mipsel (Closes: #758314)
* Upload in unstable
* Try to bring back lldb on mips & mipsel
* Force scan-build to use the same version of clang
* Try to fix hurd (hurd-EIEIO-undef.diff)
2014-09-01 17:07:05 +00:00

22 lines
918 B
Diff

Index: llvm-toolchain-snapshot_3.5~svn213052/clang/tools/libclang/Makefile
===================================================================
--- llvm-toolchain-snapshot_3.5~svn213052.orig/clang/tools/libclang/Makefile
+++ llvm-toolchain-snapshot_3.5~svn213052/clang/tools/libclang/Makefile
@@ -14,6 +14,7 @@ EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/l
LINK_LIBS_IN_SHARED = 1
SHARED_LIBRARY = 1
+SONAME_MAJOR=1
include $(CLANG_LEVEL)/../../Makefile.config
LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option
@@ -34,7 +35,7 @@ include $(CLANG_LEVEL)/Makefile
# Add soname to the library.
ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU GNU/kFreeBSD))
- LLVMLibsOptions += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT)
+ LLVMLibsOptions += -Wl,-soname,lib$(LIBRARYNAME)-$(LLVM_VERSION_MAJOR).$(LLVM_VERSION_MINOR)$(SHLIBEXT)
endif
ifeq ($(ENABLE_CLANG_ARCMT),1)