llvm-toolchain/debian/patches/18-soname.patch
2013-10-29 17:24:07 +00:00

22 lines
939 B
Diff

Index: llvm-toolchain-snapshot_3.4~svn193628/clang/tools/libclang/Makefile
===================================================================
--- llvm-toolchain-snapshot_3.4~svn193628.orig/clang/tools/libclang/Makefile 2013-10-29 18:21:54.358914501 +0100
+++ llvm-toolchain-snapshot_3.4~svn193628/clang/tools/libclang/Makefile 2013-10-29 18:22:13.622915201 +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
@@ -30,7 +31,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
##===----------------------------------------------------------------------===##