aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-shlib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2012-04-03 19:48:31 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2012-04-03 19:48:31 +0000
commit1895fc90e01c9c3f48f40d99da6ead5ee09bcea4 (patch)
tree419c05b19b419f289e32af751dca51c67ddcf96f /tools/llvm-shlib
parentfa5b05013679fe04bac94084d411d2774608236f (diff)
downloadexternal_llvm-1895fc90e01c9c3f48f40d99da6ead5ee09bcea4.zip
external_llvm-1895fc90e01c9c3f48f40d99da6ead5ee09bcea4.tar.gz
external_llvm-1895fc90e01c9c3f48f40d99da6ead5ee09bcea4.tar.bz2
Set soname for FreeBSD as well.
Patch by Bernard Cafarelli! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153965 91177308-0d34-0410-b5e6-96231b3b80d8
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 6b358b6..0035e3a 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)