[LLVMdev] linking share libraries when building whole-program bitcode file

Nan Zhu zhunansjtu at gmail.com
Fri Nov 6 19:35:35 PST 2009


Hi,all

I'm working on how to build a whole-program bitcode file for big projects
with a general solution,and I met a problem

I simplify it as this:

llvm-gcc -c -emit-llvm test.c

llvm-ld test.o -lpthread //here llvm-ld tells me that "Cannot find library
pthread"

then I do  this:

llvm-ld test.o

lli -load=/usr/lib/libpthread.so a.out.bc //lli tells me the
/usr/lib/libpthread.so has a invalid ELF header

What's the problem,my platform is Fedora 11

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091107/e590e2a9/attachment.html>


More information about the llvm-dev mailing list