soname
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 12 Mar 2017 08:49:18 +0000 (08:49 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 12 Mar 2017 08:49:18 +0000 (08:49 +0000)
===================================================================

Gbp-Pq: Name 18-soname.patch

clang/tools/libclang/Makefile

index 84914e0f4609f5c4e923bdf5c1f54b8226778d58..9153e28ffb90aaac5ad7fdd1c4d788c69c507523 100644 (file)
@@ -14,6 +14,7 @@ EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/libclang.exports
 
 LINK_LIBS_IN_SHARED = 1
 SHARED_LIBRARY = 1
+SONAME_MAJOR=1
 
 include $(CLANG_LEVEL)/../../Makefile.config
 LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter core \
@@ -36,7 +37,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).$(SONAME_MAJOR)
 endif
 
 ifeq ($(ENABLE_CLANG_ARCMT),1)