From d25dc3358bc81d380eb09f59b4d29dd6c53215ac Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Fri, 23 Mar 2012 10:00:42 +0000 Subject: Add soname to LLVM shared library on Linux. Probably the same stuff is necessary for *BSD. Patch from Mageia! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153324 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-shlib/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/llvm-shlib') diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile index 1d35670182..6b358b674a 100644 --- a/tools/llvm-shlib/Makefile +++ b/tools/llvm-shlib/Makefile @@ -72,6 +72,8 @@ endif ifeq ($(HOST_OS),Linux) # Don't allow unresolved symbols. LLVMLibsOptions += -Wl,--no-undefined + # Add soname to the library. + LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT) endif ifeq ($(HOST_OS),SunOS) -- cgit v1.2.3