svn commit: r335203 - stable/11/share/mk
Bryan Drewery
bdrewery at FreeBSD.org
Fri Jun 15 15:05:01 UTC 2018
Author: bdrewery
Date: Fri Jun 15 15:05:00 2018
New Revision: 335203
URL: https://svnweb.freebsd.org/changeset/base/335203
Log:
MFC r334791,r334811:
r334791:
Stop using head(1) which is not available in installworld.
r334811:
Use simpler sed invocation.
Modified:
stable/11/share/mk/bsd.linker.mk
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/share/mk/bsd.linker.mk
==============================================================================
--- stable/11/share/mk/bsd.linker.mk Fri Jun 15 15:01:59 2018 (r335202)
+++ stable/11/share/mk/bsd.linker.mk Fri Jun 15 15:05:00 2018 (r335203)
@@ -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 1p
.if ${_ld_version} == "none"
.warning Unable to determine linker type from ${ld}=${${ld}}
.endif
More information about the svn-src-stable
mailing list