[LLVMdev] Linking static external library into an LLVM pass library?

Welson Sun welson.sun at gmail.com
Wed Mar 14 16:26:07 PDT 2012


This document  http://llvm.org/docs/Projects.html says the USEDLIBS should
be used to statically link libraries:

USEDLIBSThis variable holds a space separated list of libraries that should
be linked into the program. These libraries must be libraries that come
from your *lib* directory. The libraries must be specified without their
"lib" prefix. For example, to link libsample.a, you would set USEDLIBS to
sample.a.

Note that this works only for statically linked libraries.


But, what is that "lib" directory? How can I specify external libxyz.a file
that doesn't live in this libs directory?

Anybody has done this?


Thanks!
Welson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120314/5581b22d/attachment.html>


More information about the llvm-dev mailing list