title: Statically compile LLVM tools
body: <p>I am trying to run <code>lli</code>, the LLVM JIT, on a stripped-down Linux system that does not have dynamic library support.</p>
  
  <p>Going into <code>build.ninja</code> and adding the <code>-static</code> flag feels like a hack, and (at least so far) hasn't worked (it complains about PIE and PIC). Is there some better way of modifying the LLVM build instructions to compile <code>lli</code> statically? I only need that tool, not any of the other ones.</p>
  
  <p>This is on LLVM 9.0.0.</p>