llvm-toolchain/debian/patches/18-soname.patch
2013-06-19 09:48:21 +00:00

22 lines
910 B
Diff

Index: llvm-toolchain-snapshot_3.4~svn184290/clang/tools/libclang/Makefile
===================================================================
--- llvm-toolchain-snapshot_3.4~svn184290.orig/clang/tools/libclang/Makefile 2013-06-19 11:13:54.270779471 +0200
+++ llvm-toolchain-snapshot_3.4~svn184290/clang/tools/libclang/Makefile 2013-06-19 11:13:54.266779456 +0200
@@ -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))
- LDFLAGS += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT)
+ LDFLAGS += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT).$(SONAME_MAJOR)
endif
##===----------------------------------------------------------------------===##