summaryrefslogtreecommitdiffstats
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
commitd0b458d694714313a6af519cd865582600e89bc1 (patch)
treef02ec8b1d6f0c8f43c72529b75ed59383ae1a2b2
parent765792d5d1e3657b8ad0d43527d88df90fbaf1e9 (diff)
downloadbcm5719-llvm-d0b458d694714313a6af519cd865582600e89bc1.tar.gz
bcm5719-llvm-d0b458d694714313a6af519cd865582600e89bc1.zip
Set soname for FreeBSD as well.
Patch by Bernard Cafarelli! llvm-svn: 153965
-rw-r--r--llvm/tools/llvm-shlib/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-shlib/Makefile b/llvm/tools/llvm-shlib/Makefile
index 6b358b674a2..0035e3aebec 100644
--- a/llvm/tools/llvm-shlib/Makefile
+++ b/llvm/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)
OpenPOWER on IntegriCloud