From 7f6a520b2cb98dc9def6664672b277fe7c159571 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru <sylvestre@debian.org> Date: Thu, 17 Jan 2013 16:59:32 +0000 Subject: Under GNU/Linux & HURD, add a soname to the liblldb shared library. llvm-svn: 172728 --- lldb/lib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/lib') diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile index 9f02129d0cd..b6a9e71433d 100644 --- a/lldb/lib/Makefile +++ b/lldb/lib/Makefile @@ -135,7 +135,7 @@ ifeq ($(HOST_OS),Darwin) 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 @@ ifeq ($(HOST_OS),Linux) LLVMLibsOptions += -Wl,--no-undefined # Link in python LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt + LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT) endif ifeq ($(HOST_OS),FreeBSD) -- cgit v1.2.1