This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Use ar to merge libraries?
- To: "Andrew Begel" <abegel at eecs dot berkeley dot edu>
- Subject: Re: Use ar to merge libraries?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 08 Jun 2001 04:14:57 -0300
- Cc: <binutils at sources dot redhat dot com>, <abegel at cs dot berkeley dot edu>
- Organization: GCC Team, Red Hat
- References: <B7D7A2ED64049746BBCDFB0DA028CC5404A568@ups.millennium.berkeley.edu>
On Jun 6, 2001, "Andrew Begel" <abegel@eecs.berkeley.edu> wrote:
> Without using the MRI librarian compability commands, is there a way for
> ar to merge .a files when building a new library?
> ar cru libbar.a bar1.o bar2.o
> ar cru libfoo.a libbar.a foo.o
How about:
ar cru libbar.a bar1.o bar2.o
cp libbar.a libfoo.a
ar ru libfoo.a foo.o
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me