summaryrefslogtreecommitdiffstats
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
commit20541a6da6a65f30f2890bf7d5498969d13e19b8 (patch)
tree725cf6b723abc054cc8dd5f21068bbe25d57b8cc
parent333e27d74bebf645b852440f2a17ce9cd0f7d201 (diff)
downloadbcm5719-llvm-20541a6da6a65f30f2890bf7d5498969d13e19b8.tar.gz
bcm5719-llvm-20541a6da6a65f30f2890bf7d5498969d13e19b8.zip
improve solaris support, from PR9109, patch by Yuri!
llvm-svn: 125456
-rw-r--r--llvm/tools/llvm-shlib/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/llvm-shlib/Makefile b/llvm/tools/llvm-shlib/Makefile
index e7605c8f4e3..9e6facab702 100644
--- a/llvm/tools/llvm-shlib/Makefile
+++ b/llvm/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))
OpenPOWER on IntegriCloud