This document 
<a href="http://llvm.org/docs/Projects.html">http://llvm.org/docs/Projects.html</a> says the USEDLIBS should be used to statically link libraries:<div><br></div><div><dt style="font-family:'Times New Roman';text-align:left;font-size:medium">
USEDLIBS</dt><dd style="font-family:'Times New Roman';text-align:left;font-size:medium">This variable holds a space separated list of libraries that should be linked into the program. These libraries must be libraries that come from your <b>lib</b> directory. The libraries must be specified without their "lib" prefix. For example, to link libsample.a, you would set USEDLIBS to <tt>sample.a</tt>.<p>
Note that this works only for statically linked libraries.</p><p></p></dd><br class="Apple-interchange-newline"><div>But, what is that "lib" directory? How can I specify external libxyz.a file that doesn't live in this libs directory?</div>
<div><br></div><div>Anybody has done this?</div><div><br></div><div><br></div><div>Thanks!</div><div>Welson</div><div><br></div></div>