Change in 'ar' behaviour

Jeff Baker jbaker@qnx.com
Wed Aug 11 14:32:00 GMT 2004


> Yes, this is what POSIX says:
> 
>   All file operands can be pathnames. However, files within archives
> shall
>   be named by a filename, which is the last component of the pathname
> used
>   when the file was entered into the archive. The comparison of file
>   operands to the names of files in archives shall be performed by
>   comparing the last component of the operand to the name of the file in
>   the archive.

So let's say you have a static library that contains multiple objects 
with the same name that reside in different sub directories.  If you 
want the library to contain both of these objects, and you want each 
object to be updated if it changes, but you don't want to reconstruct 
the whole archive every build because it's huge, how would you do that?



More information about the Binutils mailing list