Index: llvm-toolchain-snapshot_3.5~svn199197/clang/tools/libclang/Makefile =================================================================== --- llvm-toolchain-snapshot_3.5~svn199197.orig/clang/tools/libclang/Makefile 2014-01-14 11:31:50.080867509 +0100 +++ llvm-toolchain-snapshot_3.5~svn199197/clang/tools/libclang/Makefile 2014-01-14 11:31:50.076867509 +0100 @@ -14,6 +14,7 @@ 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 @@ -31,7 +32,7 @@ # 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)$(SHLIBEXT).$(SONAME_MAJOR) endif ##===----------------------------------------------------------------------===##