This is the mail archive of the
mailing list for the GCC project.
Re: Is anyone testing for a (cross-) target (board) with dynlinking?
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: froydnj at codesourcery dot com
- Cc: hans-peter dot nilsson at axis dot com, gcc at gcc dot gnu dot org
- Date: Tue, 12 Feb 2008 05:13:45 +0100
- Subject: Re: Is anyone testing for a (cross-) target (board) with dynlinking?
> Date: Mon, 11 Feb 2008 18:04:52 -0800
> From: Nathan Froyd <firstname.lastname@example.org>
> On Tue, Feb 12, 2008 at 02:47:39AM +0100, Hans-Peter Nilsson wrote:
> > Is it as simple as nobody having tested cross-gcc setups for
> > targets with dynamic linking, or are they incorrectly using the
> > wrong (the installed, not the newly compiled) libgcc_s.so.1?
> > Or how did you do it? NFS mounts on target and
> > "env LD_LIBRARY_PATH=... make check"?
> One way to do it is with NFS mounts and setting -Wl,-dynamic-linker
> -Wl,-rpath for your ldflags.
Thanks to you and David Daney. Have you used it yourself?
Apparently tricks are needed as the -rpath is used both at
run-time and at link-time, ld complains about "No such file or
directory" if the path doesn't exist on the host side.
I think I'll look into fixing gcc so no tricks are needed and
that libraries are copied to the target automatically.