Add soname to LLVM shared library on Linux. Probably the same stuff is necessary...
authorAnton Korobeynikov <asl@math.spbu.ru>
Fri, 23 Mar 2012 10:00:42 +0000 (10:00 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Fri, 23 Mar 2012 10:00:42 +0000 (10:00 +0000)
Patch from Mageia!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153324 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-shlib/Makefile

index 1d3567018220a8a76a607044d92ddf0f21b6af5d..6b358b674a22b1b787fb9d18f8ccc94cd105fa23 100644 (file)
@@ -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)