This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: [RFC] Adding --skip-mismatch option to ld
Date: Tue, 8 Jun 1999 20:49:32 -0700
From: Richard Henderson <rth@cygnus.com>
On Tue, Jun 08, 1999 at 05:31:44PM -0400, Ian Lance Taylor wrote:
> 2) I don't understand why it's needed. Changing the default search
> path, as is done by the first half of the patch, sounds like the
> right approach to me. Irix faces these exact issues with its
> multiple ABIs, yet it does not need this option.
That works for system directories, but not /usr/local/lib and other
such places under user control. One could argue that we simply need
to teach old users new tricks.
I don't see how it works for /usr/local/lib anyhow. If you expect to
find the library in /usr/local/lib, but the wrong library is there,
then as far as I can see you won't find the library at all. If you
need to find it in some other directory, you will need to add a -L
option, and if you do that it will work anyhow.
Perhaps we can make gcc's multilib feature handle this somehow?
> I don't think the option name --skip-mismatch is quite right. That
> seems too general for this. How about something like
> --skip-incompatible-archives?
We already have --[no-]warn-mismatch that's tangentially related.
That's presumably where Jakub got the name.
That makes sense. I was thinking that --skip-mismatch was just for
archives, but technically it is for any file for which the linker
searches, so I suppose it is reasonable.
Ian