This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is anyone testing for a (cross-) target (board) with dynlinking?


On Tue, Feb 12, 2008 at 05:13:45AM +0100, Hans-Peter Nilsson wrote:
> > From: Nathan Froyd <froydnj@codesourcery.com>
> > 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 do use it, but I forgot to mention one other piece of the setup I use:
identical paths on the host and the target.  e.g.:

host:/path/to/gcc		gets mounted at
target:/mount/path/to/gcc	gets symlinked to
target:/path/to/gcc

-Nathan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]