[comp.unix.wizards] why does 4.3bsd still lorder|tsort libc?

stanonik@nprdc.navy.mil (Ron Stanonik) (09/19/89)

Since 4.3bsd ranlib's libraries such as libc.a, why
does the Makefile for libc.a still lorder|tsort before
ar'ing the .o files?  That is, does anything depend
upon the archive being lorder'ed, or is it just an
historical leftover?

Thanks,

Ron Stanonik
stanonik@nprdc.navy.mil

gwyn@smoke.BRL.MIL (Doug Gwyn) (09/20/89)

In article <20883@adm.BRL.MIL> stanonik@nprdc.navy.mil (Ron Stanonik) writes:
>Since 4.3bsd ranlib's libraries such as libc.a, why
>does the Makefile for libc.a still lorder|tsort before
>ar'ing the .o files?

Why not?

One possible advantage is if you naively "cp new_libc.a libc.a"
the newly installed libc.a will work okay even though the BSD "ld"
grumbles that its table of contents is unusable.