Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2018 19:39:12 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334811 - head/share/mk
Message-ID:  <201806071939.w57JdCha021261@repo.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: bdrewery
Date: Thu Jun  7 19:39:11 2018
New Revision: 334811
URL: https://svnweb.freebsd.org/changeset/base/334811

Log:
  Use simpler sed invocation.
  
  X-MFC-With:	r334791
  MFC after:	1 week
  Submitted by:	danfe

Modified:
  head/share/mk/bsd.linker.mk

Modified: head/share/mk/bsd.linker.mk
==============================================================================
--- head/share/mk/bsd.linker.mk	Thu Jun  7 18:59:32 2018	(r334810)
+++ head/share/mk/bsd.linker.mk	Thu Jun  7 19:39:11 2018	(r334811)
@@ -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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201806071939.w57JdCha021261>