This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Change in 'ar' behaviour
- From: Jeff Baker <jbaker at qnx dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 11 Aug 2004 14:23:39 -0400
- Subject: Re: Change in 'ar' behaviour
- Organization: QNX Software Systems Ltd.
- References: <20040811025340.GG20462@bubble.modra.org>
- Reply-to: jbaker at qnx dot com
I tried the -P option to ar, but that only causes ar to add every
object
to the file whether the full path matches or not. Is this behaviour
expected?
It seems a little unreasonable to me..
I think the behaviour is somewhat expected, but undesireable.
'1/name.o' gets added to the archive as 'name.o'. 'ar -rP main.a
1/name.o' checks '1/name.o' against 'name.o', sees that they don't
match, assumes it's a different object and adds it as 'name.o'. Without
the path information in the archive to check against this is just the
nature of -P. Is there anything that can actually be done about it?