From: Chris Lattner Date: Sun, 13 Feb 2011 08:38:44 +0000 (+0000) Subject: improve solaris support, from PR9109, patch by Yuri! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c55f58b1a6a3ed0c386353a88b2b04681407adbe;p=oota-llvm.git 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 --- diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile index e7605c8f4e3..9e6facab702 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))