diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-04-25 18:27:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-04-25 18:27:12 +0000 |
commit | 5e109f3f74d16e352d69b4e959631e109b451da3 (patch) | |
tree | 5e18ed016ea0d603d6832f5f5ba209a1137f9eb1 | |
parent | e4f573fff8dd184bd525b80723747493178e608a (diff) |
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!
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155574 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/llvm-shlib/Makefile | 3 |
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 |