make llvm-ld to link 64-bits libs???

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