This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [libstdc++] Use LD_RUN_PATH when linking abi_check
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: Phil Edwards <phil at jaj dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: 02 Sep 2002 13:52:20 +0200
- Subject: Re: [libstdc++] Use LD_RUN_PATH when linking abi_check
- References: <20020901140933.A18141@disaster.jaj.com>
Phil Edwards <phil@jaj.com> writes:
> Rather than trying to find an -R/-rpath/-Wl,--rpath solution that would
> work on all systems, let's just trust the linker to Do The Right Thing when
> LD_RUN_PATH is present. I've verified that this works for me, additional
> reports would be welcome.
This doesn't work on Tru64 UNIX and IRIX 6 which both lack support for
LD_RUN_PATH. I think that instead we should use LD_LIBRARY_PATH (and it's
LD_LIBRARYN32_PATH/LD_LIBRARY64_PATH companions on IRIX 6) as we do all the
time in the testsuite. This is a tested solution and seems to work
everywhere.
Rainer