svn commit: r365836 - head/share/mk

Steffen Nurpmeso steffen at sdaoden.eu
Thu Sep 17 15:38:52 UTC 2020


Alex Richardson wrote in
 <202009171507.08HF7Qns080555 at repo.freebsd.org>:
 |Author: arichardson
 |Date: Thu Sep 17 15:07:25 2020
 |New Revision: 365836
 |URL: https://svnweb.freebsd.org/changeset/base/365836
 |
 |Log:
 |  Stop using lorder and ranlib when building libraries
 |  
 |  Use of ranlib or lorder is no longer necessary with current linkers
 |  (probably anything newer than ~1990) and ar's ability to create an object
 |  index and symbol table in the archive.
 |  Currently the build system uses lorder+tsort to sort the .o files in
 |  dependency order so that a single-pass linker can use them. However,
 |  we can use the -s flag to ar to add an index to the .a file which makes
 |  lorder unnecessary.
 |  Running ar -s is equivalent to running ranlib afterwards, so we can also
 |  skip the ranlib invocation.

That ranlib thing yes (for long indeed), but i have vague memories
that the tsort/lorder ordering was also meant to keep the things
which heavily interdepend nearby each other.  (Luckily Linux
always had at least tsort available.)
This no longer matters for all the platforms FreeBSD supports?

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


More information about the svn-src-all mailing list