aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-shlib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-13 08:38:44 +0000
committerChris Lattner <sabre@nondot.org>2011-02-13 08:38:44 +0000
commitc55f58b1a6a3ed0c386353a88b2b04681407adbe (patch)
treee3da0bd9f0acce16328ca00c4582e683d7dd832b /tools/llvm-shlib
parentb289b4074419e0932e8bcce0797fe3e5c55cbcd4 (diff)
improve solaris support, from PR9109, patch by Yuri!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-shlib')
-rw-r--r--tools/llvm-shlib/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile
index e7605c8f4e..9e6facab70 100644
--- a/tools/llvm-shlib/Makefile
+++ b/tools/llvm-shlib/Makefile
@@ -73,6 +73,11 @@ ifeq ($(HOST_OS),Linux)
LLVMLibsOptions += -Wl,--no-undefined
endif
+ifeq ($(HOST_OS),SunOS)
+ # add -z allextract ahead of other libraries on Solaris
+ LLVMLibsOptions := -Wl,-z -Wl,allextract $(LLVMLibsOptions)
+endif
+
ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
SHLIB_STUBS := $(addprefix $(ObjDir)/, $(SHLIB_FRAG_NAMES))