From owner-svn-src-head@freebsd.org Thu Sep 17 15:38:52 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C195E3E49CA; Thu, 17 Sep 2020 15:38:52 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bsh2h3BS0z49RZ; Thu, 17 Sep 2020 15:38:52 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: by sdaoden.eu (Postfix, from userid 1000) id AC94A16057; Thu, 17 Sep 2020 17:38:43 +0200 (CEST) Date: Thu, 17 Sep 2020 17:38:43 +0200 From: Steffen Nurpmeso To: Alex Richardson Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r365836 - head/share/mk Message-ID: <20200917153843.tZEGn%steffen@sdaoden.eu> In-Reply-To: <202009171507.08HF7Qns080555@repo.freebsd.org> References: <202009171507.08HF7Qns080555@repo.freebsd.org> Mail-Followup-To: Alex Richardson , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org User-Agent: s-nail v14.9.19-127-g67fa13b6 OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. X-Rspamd-Queue-Id: 4Bsh2h3BS0z49RZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15987, ipnet:217.144.128.0/20, country:DE] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2020 15:38:52 -0000 Alex Richardson wrote in <202009171507.08HF7Qns080555@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)