HOWTO - Creating a static lib from objects and other static libs?

2008-03-18 Thread muni2773

Folks I am trying to embed a static lib in a new lib that I am creating with
more objects

my command is 

ar rcs libnew.a a.o b.o oldlib1.a oldlib2.a

This succeeds but when I link against this new library the symbols from the
old lib are missing

Thanks

Muni
-- 
View this message in context: 
http://www.nabble.com/HOWTO---Creating-a-static-lib-from-objects-and-other-static-libs--tp16131045p16131045.html
Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com.



___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


Re: HOWTO - Creating a static lib from objects and other static libs?

2008-03-18 Thread Vamsi Krishna
This is not a bug.

Just extract all your lib*.a library files

find . -name "*.a" -exec ar x \{\} \; -print
ar rc libnew.a *.o

HTH,
Vamsi Kundeti.

On Tue, Mar 18, 2008 at 6:05 PM, muni2773 <[EMAIL PROTECTED]> wrote:
>
>  Folks I am trying to embed a static lib in a new lib that I am creating with
>  more objects
>
>  my command is
>
>  ar rcs libnew.a a.o b.o oldlib1.a oldlib2.a
>
>  This succeeds but when I link against this new library the symbols from the
>  old lib are missing
>
>  Thanks
>
>  Muni
>  --
>  View this message in context: 
> http://www.nabble.com/HOWTO---Creating-a-static-lib-from-objects-and-other-static-libs--tp16131045p16131045.html
>  Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com.
>
>
>
>  ___
>  bug-binutils mailing list
>  bug-binutils@gnu.org
>  http://lists.gnu.org/mailman/listinfo/bug-binutils
>



-- 
Sincerely,
Vamsi


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils