summaryrefslogtreecommitdiff
path: root/tools/llvm-shlib
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-shlib')
-rw-r--r--tools/llvm-shlib/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile
index 6b358b674a..0035e3aebe 100644
--- a/tools/llvm-shlib/Makefile
+++ b/tools/llvm-shlib/Makefile
@@ -67,13 +67,13 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD OpenBSD))
# Include everything from the .a's into the shared library.
LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
-Wl,--no-whole-archive
+ # Add soname to the library.
+ LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif
ifeq ($(HOST_OS),Linux)
# Don't allow unresolved symbols.
LLVMLibsOptions += -Wl,--no-undefined
- # Add soname to the library.
- LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif
ifeq ($(HOST_OS),SunOS)