[LLVMdev] Patch to enable LLVM to build successfully with shared library support disabled
Tom Honermann
thonermann at coverity.com
Fri Nov 4 19:25:17 PDT 2011
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>
More information about the llvm-dev
mailing list