From 1ee781a75a396207535bfb9deb5eed6c799ea7a1 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 17 Jan 2013 17:25:18 +0000 Subject: [PATCH] Add the soname to liblldb --- debian/patches/57-lldb-soname.diff | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 debian/patches/57-lldb-soname.diff diff --git a/debian/patches/57-lldb-soname.diff b/debian/patches/57-lldb-soname.diff new file mode 100644 index 00000000..79175c5c --- /dev/null +++ b/debian/patches/57-lldb-soname.diff @@ -0,0 +1,21 @@ +Index: llvm-toolchain-3.2-3.2/tools/lldb/lib/Makefile +=================================================================== +--- llvm-toolchain-3.2-3.2.orig/tools/lldb/lib/Makefile 2013-01-13 09:30:41.000000000 +0100 ++++ llvm-toolchain-3.2-3.2/tools/lldb/lib/Makefile 2013-01-17 18:01:01.000000000 +0100 +@@ -135,7 +135,7 @@ + endif + endif + +-ifeq ($(HOST_OS),Linux) ++ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU)) + # Include everything from the .a's into the shared library. + ProjLibsOptions := -Wl,--whole-archive $(ProjLibsOptions) \ + -Wl,--no-whole-archive +@@ -143,6 +143,7 @@ + LLVMLibsOptions += -Wl,--no-undefined + # Link in python + LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt ++ LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT).1 + endif + + ifeq ($(HOST_OS),FreeBSD)