build failure in llvm revision69440

I am getting following compilation error while compiling llvm. I installed the missing libs. using my package manager (and there are in /usr/loca/lib path). Any clue to fix the problem. Thanks!

/home/rajika/projects/llvm/llvm-objects/Debug/bin/tblgen: error while loading shared libraries: cannot open shared object file: No such file or directory
make[1]: *** [/home/rajika/projects/llvm/llvm-objects/lib/VMCore/Debug/Intrinsics.gen.tmp] Error 127
make[1]: Leaving directory `/home/rajika/projects/llvm/llvm-objects/lib/VMCore’
make: *** [all] Error 1

I fixed the issue by exporting the LD_LIBRARY_PATH.