Hi, llvmdev! The diff attached takes the features of OpenBSD binutils into account (which needs --whole-archive) and makes build with ENABLE_SHARED successful. -------------- next part -------------- Index: tools/llvm-shlib/Makefile ==================================================================--- tools/llvm-shlib/Makefile (revision 117443) +++ tools/llvm-shlib/Makefile (working copy) @@ -61,10 +61,12 @@ endif endif -ifeq ($(HOST_OS), Linux) +ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux OpenBSD)) # Include everything from the .a's into the shared library. LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \ -Wl,--no-whole-archive +endif +ifeq ($(HOST_OS),Linux) # Don't allow unresolved symbols. LLVMLibsOptions += -Wl,--no-undefined endif
Vladimir, It is as same as freebsd :) See also http://llvm.org/bugs/show_bug.cgi?id=8434 I will commit them fused tomorrow, if no one objects. ...Takumi 2010/10/27 Vladimir Kirillov <proger at uaoug.org.ua>:> Hi, llvmdev! > > The diff attached takes the features of OpenBSD binutils into account > (which needs --whole-archive) and makes build with ENABLE_SHARED > successful. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
Committed in r117528, thank you! ...Takumi 2010/10/27 NAKAMURA Takumi <geek4civic at gmail.com>:> Vladimir, > > It is as same as freebsd :) > See also http://llvm.org/bugs/show_bug.cgi?id=8434 > > I will commit them fused tomorrow, if no one objects. > > > ...Takumi > > > 2010/10/27 Vladimir Kirillov <proger at uaoug.org.ua>: >> Hi, llvmdev! >> >> The diff attached takes the features of OpenBSD binutils into account >> (which needs --whole-archive) and makes build with ENABLE_SHARED >> successful. >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Apparently Analagous Threads
- [LLVMdev] [diff] let llvm-shlib build on OpenBSD
- [LLVMdev] [diff] let llvm-shlib build on OpenBSD
- [LLVMdev] llvm build breakage on OpenBSD after adding system_error
- [LLVMdev] sprintf -> snprintf conversion
- [LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED