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
This commit is contained in:
Anton Korobeynikov 2012-03-23 10:00:42 +00:00
parent e959f7e17f
commit d25dc3358b

View File

@ -72,6 +72,8 @@ endif
ifeq ($(HOST_OS),Linux) ifeq ($(HOST_OS),Linux)
# Don't allow unresolved symbols. # Don't allow unresolved symbols.
LLVMLibsOptions += -Wl,--no-undefined LLVMLibsOptions += -Wl,--no-undefined
# Add soname to the library.
LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif endif
ifeq ($(HOST_OS),SunOS) ifeq ($(HOST_OS),SunOS)