Change in 'ar' behaviour

Jeff Baker jbaker@qnx.com
Tue Aug 10 14:28:00 GMT 2004


One of our customers has noticed a change in the behaviour of 'ar' 
between 2.10.1 and 2.12.1 or later.

2.10.1
------
$ ar rcs test.a object.o
$ ar rcs test.a dir/object.o
$ ar tv test.a
rw-rw-rw- 1003/513  21368 Jul 27 13:14 2004 object.o
rw-rw-rw- 1003/513  12384 Jul 27 13:14 2004 dir/object.o

2.12.1 (or later)
-----------------
$ ar rcs test.a object.o
$ ar rcs test.a dir/object.o
$ ar tv test.a
rw-rw-rw- 1003/513  12384 Jul 27 13:14 2004 object.o

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?



More information about the Binutils mailing list