AR - append archive to archive
AR - append archive to archive
- Subject: AR - append archive to archive
- From: Andrew White <email@hidden>
- Date: Wed, 21 Sep 2005 12:29:56 +1000
I'm trying to append the contents of one archive file to another. AR will
add the two archives, but not update the symbol table of the receiving archive.
Eg:
% ar -rs big.a file1.o file2.o small.a
% ar -t big.a
__.SYMDEF SORTED
file1.o
file2.o
small.a
% nm big.a
big.a(file1.o):
<...>
big.a(file2.o):
<...>
Notably missing from 'nm' is small.a.
As a workaround, I've changed my code to:
cp small.a big.a
ar -rs big.a file1.o file2.o
This works, but obviously is not a general solution.
Any suggestions?
--
Andrew White
--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden