How to build static linked llvm?

Hi,

Does anybody know that how to build static linked lli or llc?
I tried several options like --enable-static or LDFLAGS=-static, but still get dynamic linked llvm.

Thanks in advance.

Sheng.

Try something like CXX.Flags=-static C.Flags=-static LD.Flags=-static.

Evan