Is anyone testing for a (cross-) target (board) with dynlinking?
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Tue Feb 12 04:14:00 GMT 2008
> Date: Mon, 11 Feb 2008 18:04:52 -0800
> From: Nathan Froyd <froydnj@codesourcery.com>
> 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.
brgds, H-P
More information about the Gcc
mailing list