> Date: Mon, 11 Feb 2008 18:04:52 -0800
> From: Nathan Froyd <[EMAIL PROTECTED]>

> 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

Reply via email to