This is the mail archive of the
mailing list for the GCC project.
Re: Is anyone testing for a (cross-) target (board) with dynlinking?
On Tue, Feb 12, 2008 at 07:20:52PM +0100, Hans-Peter Nilsson wrote:
> > Date: Tue, 12 Feb 2008 13:16:27 -0500
> > From: Daniel Jacobowitz <firstname.lastname@example.org>
> > On Tue, Feb 12, 2008 at 05:13:45AM +0100, Hans-Peter Nilsson wrote:
> > > 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.
> > Ian already mentioned -rpath-link. Just for completeness: -rpath is
> > only used at runtime, it doesn't even have to be a Unix path.
> Incorrect; -rpath is used at both link and runtime.
Yes, I was slightly mistaken. The manual says "Searching -rpath in
this way is only supported by native linkers and cross linkers which
have been configured with the --with-sysroot option."
I don't remember why that exception is there.