summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-25 18:27:12 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-25 18:27:12 +0000
commitea5f85ee5ae47947b3adeda2a16ae491197a0fee (patch)
tree840f4e503372483b7e202ba094fab341d94fe320
parentf242e2386ef20b2fc65ed58bd9a65e8b0bef865c (diff)
downloadllvm-ea5f85ee5ae47947b3adeda2a16ae491197a0fee.tar.gz
Merging r155536:
------------------------------------------------------------------------ r155536 | lattner | 2012-04-24 23:37:20 -0700 (Tue, 24 Apr 2012) | 3 lines openbsd doesn't support soname, patch by Brad Smith! ------------------------------------------------------------------------ llvm-svn: 155574
-rw-r--r--llvm/tools/llvm-shlib/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-shlib/Makefile b/llvm/tools/llvm-shlib/Makefile
index 2d2e2c55b80d..75bee07d171d 100644
--- a/llvm/tools/llvm-shlib/Makefile
+++ b/llvm/tools/llvm-shlib/Makefile
@@ -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