[LLVMdev] LLVM Cmake module?

Eli Gottlieb eligottlieb at gmail.com
Thu Nov 4 08:50:43 PDT 2010


On Nov 4, 2010, at 11:48 AM, Óscar Fuentes wrote:

> Eli Gottlieb <eligottlieb at gmail.com> writes:
> 
>> So you're saying that the default CMake build of LLVM creates static
>> libraries that got linked into my shared-object and now require me to
>> link in everything they require myself?  Shouldn't the linker be able
>> to track down C++ runtime for this?
> 
> You told CMake to manage your shared library as if it were a pure C
> application, which isn't (because it links to static LLVM libraries.)
> The linker is doing what you requested: link a C executable.
> 
> So either you add the required C++ libraries yourself, or link the
> shared library as a C++ executable.
So... couldn't I just tell it to compile LLVM as shared libraries instead of static?



More information about the llvm-dev mailing list