On Tue, Feb 12, 2008 at 05:13:45AM +0100, Hans-Peter Nilsson wrote: > > From: Nathan Froyd <[EMAIL PROTECTED]> > > 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