Build a static-linked executable using llvm

Hello all,

I wanna build a static linked executable using llvm. But I failed.
My question is Can we use -static using llvm?

Thanks for any response.

Below is details

You are missing references for pthread. Try to add -pthread to build line.

Thank you very much!
I use -pthread -ldl and succeed!

2011/1/8 arrowdodger <>