From 0f8d66ea26c978ef7b044e19a1af4ed9add2519f Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Tue, 25 Apr 2017 17:46:34 +0000 Subject: [PATCH] soname =================================================================== Gbp-Pq: Name 18-soname.patch --- clang/tools/libclang/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/tools/libclang/Makefile b/clang/tools/libclang/Makefile index 84914e0f..9153e28f 100644 --- a/clang/tools/libclang/Makefile +++ b/clang/tools/libclang/Makefile @@ -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) -- 2.30.2