openbsd doesn't support soname, patch by Brad Smith!

llvm-svn: 155536
This commit is contained in:
Chris Lattner 2012-04-25 06:37:20 +00:00
parent 024e12df52
commit 07d9073df2
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD OpenBSD GNU))
# Include everything from the .a's into the shared library.
LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
-Wl,--no-whole-archive
endif
ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU))
# Add soname to the library.
LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif