[llvm-commits] [llvm] r125456 - /llvm/trunk/tools/llvm-shlib/Makefile
Chris Lattner
sabre at nondot.org
Sun Feb 13 00:38:44 PST 2011
Author: lattner
Date: Sun Feb 13 02:38:44 2011
New Revision: 125456
URL: http://llvm.org/viewvc/llvm-project?rev=125456&view=rev
Log:
improve solaris support, from PR9109, patch by Yuri!
Modified:
llvm/trunk/tools/llvm-shlib/Makefile
Modified: llvm/trunk/tools/llvm-shlib/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-shlib/Makefile?rev=125456&r1=125455&r2=125456&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-shlib/Makefile (original)
+++ llvm/trunk/tools/llvm-shlib/Makefile Sun Feb 13 02:38:44 2011
@@ -73,6 +73,11 @@
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))
More information about the llvm-commits
mailing list