f



How to create a .a ( archive ) file from multiple .a files

I m using HP UNIX
I wanted to make a single archive file from multiple .a files by
pulling in all the .o modules contained within each of these .a files.

Thanks
--sony

0
sonyantony (50)
4/28/2005 2:29:18 PM
comp.unix.programmer 10848 articles. 0 followers. kokososo56 (350) is leader. Post Follow

1 Replies
930 Views

Similar Articles

[PageSpeed] 6

sonyantony@hotmail.com writes:

> I wanted to make a single archive file from multiple .a files by
> pulling in all the .o modules contained within each of these .a files.

And what is stopping you from doing that?

  mkdir tmp.$$ && cd tmp.$$ &&
  ar x ../libfoo.a && ar xv ../libbar.a &&
  ar r ../libcombined.a *.o &&
  cd .. && rm -rf tmp.$$

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
0
Paul
4/28/2005 2:44:01 PM
Reply: