summaryrefslogtreecommitdiff
path: root/tools/llvm-shlib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-04-25 06:37:20 +0000
committerChris Lattner <sabre@nondot.org>2012-04-25 06:37:20 +0000
commitfa1059fd9c134e2475a693a02289d15ebd47f66e (patch)
treee6422a084366c6a21ba5b7b1b16331acc174a3df /tools/llvm-shlib
parent3ef91f575e0a6e4a81c887853470686edb472c86 (diff)
downloadllvm-fa1059fd9c134e2475a693a02289d15ebd47f66e.tar.gz
llvm-fa1059fd9c134e2475a693a02289d15ebd47f66e.tar.bz2
llvm-fa1059fd9c134e2475a693a02289d15ebd47f66e.tar.xz
openbsd doesn't support soname, patch by Brad Smith!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-shlib')
-rw-r--r--tools/llvm-shlib/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile
index 2d2e2c55b8..75bee07d17 100644
--- a/tools/llvm-shlib/Makefile
+++ b/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