summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-06-22 21:22:12 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-06-22 21:22:12 +0000
commit89bf31fd6374f562e68a85925c5c7709e10add4f (patch)
tree6e997ee3d6db81b4062ea1656891fbd8268e2845
parent81b4423f052360d2824cbdaab0f82c88b5f5a85e (diff)
downloadsrc-test2-89bf31fd6374f562e68a85925c5c7709e10add4f.tar.gz
src-test2-89bf31fd6374f562e68a85925c5c7709e10add4f.zip
Notes
-rw-r--r--share/mk/bsd.linker.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.linker.mk b/share/mk/bsd.linker.mk
index 7a6502012689..226c7f3b335e 100644
--- a/share/mk/bsd.linker.mk
+++ b/share/mk/bsd.linker.mk
@@ -48,7 +48,7 @@ _ld_version!= ${${ld}} --version 2>/dev/null | head -n 1 || echo none
.endif
.if ${_ld_version:[1..2]} == "GNU ld"
${X_}LINKER_TYPE= binutils
-_v= ${_ld_version:[3]}
+_v= ${_ld_version:M[1-9].[0-9]*:[1]}
.elif ${_ld_version:[1]} == "LLD"
${X_}LINKER_TYPE= lld
_v= ${_ld_version:[2]}