Tom Honermann
2011-Nov-05 02:25 UTC
[LLVMdev] Patch to enable LLVM to build successfully with shared library support disabled
I checked out llvm/trunk today and found that it failed to build successfully on Linux when 'configure' was invoked with '--disable-shared' and CFLAGS included '-static'. The attached patch modifies a few Makefiles to prevent attempts to build shared libraries when ENABLE_SHARED is not set to 1. Apply the patch in the LLVM root directory with 'patch -p1 ...' This patch contains a change to tools/Makefile that changes behavior for Cygwin and MingW platforms. The previous logic would filter out 'bugpoint-passes' from the list of modules to build if the host platform is Cygwin or MingW and support for shared libraries was not enabled. However, this conflicted with comments there. The logic and the comment both appeared wrong to me. The logic now simply filters out 'bugpoint-passes' (and other modules) if shared library support is not enabled. Someone more familiar with this may want to look at this regarding the desired Cygwin and MingW behavior. Tom. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: llvm-enable_shared.patch URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111104/67c081c7/attachment.ksh>
NAKAMURA Takumi
2011-Nov-07 03:39 UTC
[LLVMdev] Patch to enable LLVM to build successfully with shared library support disabled
2011/11/5 Tom Honermann <thonermann at coverity.com>:> I checked out llvm/trunk today and found that it failed to build > successfully on Linux when 'configure' was invoked with '--disable-shared' > and CFLAGS included '-static'. The attached patch modifies a few Makefiles > to prevent attempts to build shared libraries when ENABLE_SHARED is not set > to 1.Tom, ENABLE_SHARED means "To build the big libLLVM.so". plugins are assumed to be built regardless of ENABLE_SHARED on elf/macho hosts. To satisfy your issue, we would need to implement "--disable-plugins", IMO. ...Takumi
Possibly Parallel Threads
- [LLVMdev] [cfe-dev] [3.6 Release] RC3 has been tagged
- [LLVMdev] [cfe-dev] [3.6 Release] RC3 has been tagged
- [LLVMdev] [cfe-dev] [3.6 Release] RC3 has been tagged
- [LLVMdev] [cfe-dev] [3.6 Release] RC3 has been tagged
- [LLVMdev] RFC: change build order (or location) of LLVMHello plugin