On Thursday 15 July 2010 08:48, Ralf Friedl wrote: > Rob Landley wrote: > > Not entirely sure why, they didn't specify s, but I guess ar creates the > > index > > by default when you create with c? > > > From GNU ar man: > > s Write an object-file index into the archive, or update an existing > one, *even if no other change is made* to the archive. You may use > this modifier flag either with any operation, or alone. Running ar > s on an archive is equivalent to running ranlib on it. > > S Do not generate an archive symbol table. This can speed up build- > ing a large library in several steps. The resulting archive can > not be used with the linker. *In order to build a symbol table*, you > must omit the S modifier on the last execution of ar, or you must > run ranlib on the archive. > > It seems that GNU ar builds the symbol table by default, unless > instructed not to do it.
Yeah, our ar hasn't a slightest idea about symbols inside files it packs into an .a files. So far it's a dumb archiver, like tar or cpio. -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
