[klibc] can I create lib.a from dir/lib.a?

Sam Ravnborg sam at ravnborg.org
Sun Jul 9 10:01:37 PDT 2006

In an attempt to solve some of the dependency issues when building klibc
library I started to do a modular build of klibc library.

The priciple is simple. build all sub-directories specified with
lib-y := dir/ before the final lib.a

But reading "man ar" it was not obvious if:
ar cp lib.a dir/lib.a dir2/lib.a file1.o file2.o

would produce the desired result.

The linux kernel uses lr -r instead, but thats not libraries.
I could try it out but thought asking the list could reveal some
pratical experiences.


More information about the klibc mailing list