git: 513d3fde7c46 - main - tools/build: Don't set RANLIB for non-FreeBSD builds

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 10 Jul 2026 18:17:09 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=513d3fde7c4665c1c83ad227ac4ec95c89b84add

commit 513d3fde7c4665c1c83ad227ac4ec95c89b84add
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-03-23 18:50:41 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-07-10 18:16:49 +0000

    tools/build: Don't set RANLIB for non-FreeBSD builds
    
    RANLIB is not used by our build, so there is no need to set it.
    
    Reviewed by:    imp
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D58156
---
 tools/build/mk/Makefile.boot | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tools/build/mk/Makefile.boot b/tools/build/mk/Makefile.boot
index 43246f3ceebf..94e44cbabab4 100644
--- a/tools/build/mk/Makefile.boot
+++ b/tools/build/mk/Makefile.boot
@@ -9,7 +9,6 @@ LDFLAGS+=	-L${WORLDTMP}/legacy/usr/lib
 # $PATH before a nm that supports the host architecture.
 # To ensure that host binary compile as expected we use the tools from /usr/bin.
 AR:=	/usr/bin/ar
-RANLIB:=	/usr/bin/ranlib
 NM:=	/usr/bin/nm
 
 # Avoid stale dependecy warnings:
@@ -57,10 +56,9 @@ LDADD+=	-lfts
 .elif ${.MAKE.OS} == "Darwin"
 CFLAGS+=	-D_DARWIN_C_SOURCE=1
 CFLAGS+=	-I${SRCTOP}/tools/build/cross-build/include/mac
-# The macOS ar and ranlib don't understand all the flags supported by the
-# FreeBSD and Linux ar/ranlib
+# The macOS ar doesn't understand all the flags supported by the
+# FreeBSD and Linux ar
 ARFLAGS:=	-crs
-RANLIBFLAGS:=
 
 # to get libarchive (needed for elftoolchain)
 # MacOS ships /usr/lib/libarchive.dylib but doesn't provide the headers