From: Anton Korobeynikov Date: Fri, 23 Mar 2012 10:00:42 +0000 (+0000) Subject: Add soname to LLVM shared library on Linux. Probably the same stuff is necessary... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d25dc3358bc81d380eb09f59b4d29dd6c53215ac;p=oota-llvm.git 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 --- diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile index 1d356701822..6b358b674a2 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)