[LLVMdev] Static linking of execution engine

Mario Schwalbe mario at se.inf.tu-dresden.de
Tue May 21 04:52:20 PDT 2013


Hi,

I'm on Linux and trying to link an application that makes use of
LLVM's JIT execution engine statically.

Setup:
(1) LLVM libs are compiled as static libraries.
(2) Called InitializeNativeTarget().
(3) Included llvm/ExecutionEngine/JIT.h.

It works if I build and link regularly.

However, if I add -static when linking, the execution engine
fails to initialize. Does anyone know why? LLVM libs are already
archives. Is that supported at all?

Thanks & ciao,
Mario



More information about the llvm-dev mailing list