aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-shlib/Makefile
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2012-03-23 10:00:42 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2012-03-23 10:00:42 +0000
commitd25dc3358bc81d380eb09f59b4d29dd6c53215ac (patch)
tree7d0459ce161c0cb8b0c49deb93639d3c6b4074d2 /tools/llvm-shlib/Makefile
parente959f7e17f0bb999ab032b1567600d39347e983a (diff)
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
Diffstat (limited to 'tools/llvm-shlib/Makefile')
-rw-r--r--tools/llvm-shlib/Makefile2
1 files changed, 2 insertions, 0 deletions
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)