Wrong path to libLTO.so in LLVMgold.so on Linux

The path to libLTO.so in LLVMgold.so points to the build
directory on my machine:

% ldd /usr/local/lib/LLVMgold.so
        linux-vdso.so.1 (0x00007fff3d795000)
        /var/tmp/build_llvm_clang/Release+Asserts/lib/libLTO.so => not found
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1703983000)
        ...

I have configured clang with:
../llvm/configure --enable-optimized --enable-targets=host --with-binutils-include=/usr/lib/binutils/x86_64-pc-linux-gnu/2.21.53.0.2/include --with-cxx-include-root=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4 --with-cxx-include-arch=/x86_64-pc-linux-gnu

Any ideas on how to fix this?

To answer my own question; the following patch fixes the problem for me:

Index: tools/gold/Makefile