[LLVMdev] How to correctly generate library dependences using llvm-config

Lei Mou lei.mou.uu at gmail.com
Wed May 9 05:20:25 PDT 2012


Hi all,

I created a stub backend foo modified from the PTX backend, and made the
corresponding modifications in configure.sh, include/ADT/Triple.h and
lib/Support/Triple.cpp. However, when compiling using --enable-targets=foo,
llc cannot linked properly due to the fact that -lLLVMFOODesc (generated
from folder MCTargetDesc) is missing from the command line. I tried to use
llvm-config foo --libs and found that -lLLVMFOODesc is not in the library
dependences.
I have no idea why this happens. How can this problem be solved? Any help
is appreciated! Thanks!

Regards,
Lei Mou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120509/4b56f510/attachment.html>


More information about the llvm-dev mailing list