This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Testing and dynamic linking on remote target
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: David Talmage <dtalmage at isi dot edu>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Fri, 10 Jul 2015 11:27:55 +0100
- Subject: Re: Testing and dynamic linking on remote target
- Authentication-results: sourceware.org; auth=none
- References: <3568306 dot ooPbXbye02 at reasonable>
On 09/07/15 16:56, David Talmage wrote:
> I'm looking for a way to specify the LD_LIBRARY_PATH or LD_PRELOAD on the
> target system when running one of the DejaGNU test suites. I'm testing a gcc
> cross-compiler on a development board. I can't replace existing versions of
> libraries under test because other people are using the development board when
> I'm testing.
>
> I found a thread about this in the archives: "Is anyone testing for a (cross-)
> target (board) with dynlinking?"
> (https://gcc.gnu.org/ml/gcc/2008-02/msg00201.html). The best suggestion at the
> time was to NFS mount the cross-compiled library directory and use "-Wl,-
> dynamic-linker -Wl,-rpath" in LDFLAGS.
>
> NFS mounting isn't an option for me, alas.
>
i think if you copy the libraries somewhere on the target
then you can use
-rpath-link=/libs/on/host -rpath=/libs/on/target