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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to