From 5e109f3f74d16e352d69b4e959631e109b451da3 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 25 Apr 2012 18:27:12 +0000 Subject: 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 --- tools/llvm-shlib/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-18-g5258