From fbe5d5cbf1fb8657fb1dc35a5fc288cc9826c93c Mon Sep 17 00:00:00 2001 From: bdrewery Date: Thu, 7 Jun 2018 19:39:11 +0000 Subject: [PATCH] Use simpler sed invocation. X-MFC-With: r334791 MFC after: 1 week Submitted by: danfe --- 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 f90a1a31e210..bd1f47641ea8 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) | sed -n '1,1p' +_ld_version!= (${${ld}} --version || echo none) | sed -n 1p .if ${_ld_version} == "none" .warning Unable to determine linker type from ${ld}=${${ld}} .endif