Makefile.inc1: Drop AS and RANLIB variables

These are not used in our world and kernel build targets.  We use the
compiler driver for assembly, and ar adds the archive index (symbol
table) automatically.

Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55964
This commit is contained in:
Ed Maste
2026-03-18 13:06:36 -04:00
parent c082e56564
commit 9b1f77e647
3 changed files with 5 additions and 7 deletions
+5 -5
View File
@@ -224,7 +224,7 @@ MK_SYSTEM_LINKER= no
.if defined(CROSS_TOOLCHAIN_PREFIX)
CROSS_BINUTILS_PREFIX?=${CROSS_TOOLCHAIN_PREFIX}
.endif
XBINUTILS= AS AR ELFCTL LD NM OBJCOPY RANLIB SIZE STRINGS STRIPBIN
XBINUTILS= AR ELFCTL LD NM OBJCOPY SIZE STRINGS STRIPBIN
.for BINUTIL in ${XBINUTILS}
.if defined(CROSS_BINUTILS_PREFIX) && \
exists(${CROSS_BINUTILS_PREFIX}/${${BINUTIL}})
@@ -240,8 +240,8 @@ MK_LLD_BOOTSTRAP= no
.endif
# If full paths to all standard bintuils are given, don't build LLVM binutils.
.if ${XAR:M/*} && ${XNM:M/*} && ${XOBJCOPY:M/*} && ${XRANLIB:M/*} && \
${XSIZE:M/*} && ${XSTRINGS:M/*} && ${XSTRIPBIN:M/*}
.if ${XAR:M/*} && ${XNM:M/*} && ${XOBJCOPY:M/*} && ${XSIZE:M/*} && \
${XSTRINGS:M/*} && ${XSTRIPBIN:M/*}
MK_LLVM_BINUTILS_BOOTSTRAP= no
.endif
@@ -855,9 +855,9 @@ HMAKE+= PATH=${TMPPATH:Q} METALOG=${METALOG} -DNO_ROOT
CROSSENV+= CC="${XCC} ${XCFLAGS}" CXX="${XCXX} ${XCXXFLAGS} ${XCFLAGS}" \
CPP="${XCPP} ${XCFLAGS}" \
AS="${XAS}" AR="${XAR}" ELFCTL="${XELFCTL}" LD="${XLD}" \
AR="${XAR}" ELFCTL="${XELFCTL}" LD="${XLD}" \
LLVM_LINK="${XLLVM_LINK}" NM=${XNM} OBJCOPY="${XOBJCOPY}" \
RANLIB=${XRANLIB} STRINGS=${XSTRINGS} \
STRINGS=${XSTRINGS} \
SIZE="${XSIZE}" STRIPBIN="${XSTRIPBIN}"
.if defined(CROSS_BINUTILS_PREFIX) && exists(${CROSS_BINUTILS_PREFIX})
-1
View File
@@ -1013,7 +1013,6 @@ To be able to build the system alternate binary utilities must be provided via
.Ev XAR ,
.Ev XNM ,
.Ev XOBJCOPY ,
.Ev XRANLIB ,
.Ev XSIZE ,
.Ev XSTRINGS ,
and
@@ -4,7 +4,6 @@ To be able to build the system alternate binary utilities must be provided via
.Ev XAR ,
.Ev XNM ,
.Ev XOBJCOPY ,
.Ev XRANLIB ,
.Ev XSIZE ,
.Ev XSTRINGS ,
and