I always create symbolic links to vstdlib_i468.so and tier0_i486.so in the directory that I'm compiling in. I don't use LD_RUN_PATH or anything like that.
That generally gives me something like this:
Code:
$ ldd Release/dod_cof_mm_i486.so
linux-gate.so.1 => (0xffffe000)
vstdlib_i486.so => not found
tier0_i486.so => not found
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7ef5000)
libdl.so.2 => /lib/tls/libdl.so.2 (0xb7ef1000)
libm.so.6 => /lib/tls/libm.so.6 (0xb7ecc000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7d99000)
/lib/ld-linux.so.2 (0x80000000)
Here's basically what most of my Makefiles look like, if you're curious:
http://dackz.net/sa/makefile.txt -- though it looks a bit different when I'm trying to avoid libstdc++ (it doesn't link to libstdc++.a or libgcc_s, it doesn't create symbolic links for them, etc.)