[LLVMdev] Building an external lib with the LLVM build system

Óscar Fuentes
Fri, 28 Aug 2009 13:21:20 -0000

Olaf Krzikalla <Olaf.Krzikalla at tu-dresden.de> writes:

[snip]

> How to do it the right way? How to set up a build system for an external
> lib based on LLVM?

AFAIK the LLVM build framework is for LLVM subprojects. You have a
external application that uses LLVM. So build the library with your
project's makefile. If you need the compiler flags used for LLVM invoke
llvm-config. Likewise for libraries. Probably you'll need to teach your
makefile about the LLVM library and header locations.

--
Óscar