This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: How to Merge libraries using ar?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Christoffer Gurell'" <orbit at 0x63 dot nu>, <binutils at sourceware dot org>
- Date: Tue, 22 May 2007 10:34:30 +0100
- Subject: RE: How to Merge libraries using ar?
- References: <20070522093237.GB32171@h55p111.delphi.afb.lu.se>
On 22 May 2007 10:33, Christoffer Gurell wrote:
> I would like to merge the contents of two libraries like:
>
> ar rc l1.a o1.o o2.o ...
> ar rc l2.a o3.o o4.o ...
> ar rc l3.a l1.a l2.a
>
> But this makes l3.a an archive containing two archives.
>
> Is there any way to do this?
You need to do it in two steps: extract all the files from your input
libraries into a temp dir, then create a fresh archive containing the lot.
cheers,
DaveK
--
Can't think of a witty .sigline today....