[LLVMdev] make llvm-ld to link 64-bits libs???
Nan Zhu
zhunansjtu at gmail.com
Fri Oct 30 19:54:46 PDT 2009
HI,all
I'm using my tool to build whole-program bitcode file for big projects,e.g.
openldap,apache,BIND
I found that llvm-ld can only link the libraries in
/usr/lib,/lib,/X11/(whatever),which causes some errors like "Error opening
'/usr/lib/libm.so': /usr/lib/libm.so: wrong ELF class: ELFCLASS32
" (I'm using Fedora 11 X86_64)
I just add
LibPaths.push_back("/usr/X11R6/lib");
LibPaths.push_back("/usr/lib64");
LibPaths.push_back("/lib64");
in front of the original relative codes in the llvm-ld.cpp,it works.
I wonder that is there any more elegent method????? or is this just a
little patch for llvm-ld???
Thanks
Nan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091031/76ecb43a/attachment.html>
More information about the llvm-dev
mailing list