On Tue, 19 Apr 2011, Marc Glisse wrote:
On Tue, 19 Apr 2011, Razno Razno wrote:
my custom built gcc 4.6.0 on ubuntu 11.04, installed in home directory
links the system libstdc++ from /usr/lib, most of the time, as evidenced by
ldd. the only software i have managed to compile which links correct
libstdc++ is the latest release of openmpi 1.5.3. sometimes this is a
problem, and sometimes the compiled software just works. does anyone have
an explanation on this, or a workaround?
Look for "rpath" in the man page for ld(1).
Or this link:
http://gcc.gnu.org/faq.html#rpath
(sorry for the double post, I only remembered about the FAQ afterwards)
--
Marc Glisse