[LLVMdev] How do you Build LLVM Statically Linked?

Kenneth Boyd zaimoni at zaimoni.com
Wed Apr 30 20:38:40 PDT 2008


David J.A. Koogler wrote:
> Anders Johnsen wrote:
>
>   
>> I think there is a
>>
>> ./configure --enable-static
>>
>> switch - have you tried that?
>>     
>
> Yes, but that only seems to force building static libraries, not
> statically linked tools.
>   
./configure --help documents that --enable-static is on by default.  Is 
that actually correct for LLVM?
> Kenneth Boyd wrote:
>
>  > The --disable-shared option to configure should work (like it does for
>  > most configure-scripted projects).
>
> No, I tried that and still got dynamically linked tools.
Ok.  This is how I force statically linked tools on the MingW32 platform.

Kenneth Boyd




More information about the llvm-dev mailing list