Use ar to merge libraries?
Alexandre Oliva
aoliva@redhat.com
Fri Jun 8 00:15:00 GMT 2001
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
More information about the Binutils
mailing list