From 1930b98d497ccb379486f054182cd73c8477cff7 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Thu, 7 Jun 2018 16:16:22 +0000 Subject: [PATCH] Stop using head(1) which is not available in installworld. installworld should not be executing this anyhow but there is some obscure case doing it still. The head(1) binary is not part of ITOOLS and there's no need to add it. MFC after: 1 week Sponsored by: Dell EMC --- share/mk/bsd.linker.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.linker.mk b/share/mk/bsd.linker.mk index 839479280ccc..f90a1a31e210 100644 --- a/share/mk/bsd.linker.mk +++ b/share/mk/bsd.linker.mk @@ -49,7 +49,7 @@ ${var}= ${${var}.${${X_}_ld_hash}} .if ${ld} == "LD" || (${ld} == "XLD" && ${XLD} != ${LD}) .if !defined(${X_}LINKER_TYPE) || !defined(${X_}LINKER_VERSION) -_ld_version!= (${${ld}} --version || echo none) | head -n 1 +_ld_version!= (${${ld}} --version || echo none) | sed -n '1,1p' .if ${_ld_version} == "none" .warning Unable to determine linker type from ${ld}=${${ld}} .endif