[LLVMdev] LLVM Cmake module?

Óscar Fuentes ofv at wanadoo.es
Thu Nov 4 08:48:16 PDT 2010


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.



More information about the llvm-dev mailing list