[cfe-dev] Patch to enable Clang to build successfully with shared library support disabled

Tom Honermann thonermann at coverity.com
Fri Nov 4 19:30:23 PDT 2011


I checked out cfe/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 one of the Clang Makefiles to prevent attempts to build shared 
libraries when ENABLE_SHARED is not set to 1.

Apply the patch in the cfe root directory with 'patch -p1 ...'

This change also corrects several errors in the Makefile related to 
Minix support.  I'm not sure, but the change in this patch might 
obsolete the need for the Minix check.

Tom.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: clang-enable_shared.patch
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111104/72ffe6b7/attachment.ksh>


More information about the cfe-dev mailing list