A related question and I cannot find answers by Googling:<div><br></div><div>How should you write the main function to compile an executable LLVM pass?</div><div><br></div><div><br></div><div>- Welson</div><div><br><br><div class="gmail_quote">
On Wed, Mar 14, 2012 at 4:26 PM, Welson Sun <span dir="ltr"><<a href="mailto:welson.sun@gmail.com">welson.sun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This document 
<a href="http://llvm.org/docs/Projects.html" target="_blank">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><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><span class="HOEnZb"><font color="#888888"><div>Welson</div><div><br></div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Welson<div><br></div><div>Phone: (408) 418-8385</div><div>Email:  <a href="mailto:welson.sun@gmail.com" target="_blank">welson.sun@gmail.com</a></div><div><br>
</div><br>
</div>