From 56fe1129da1b59eea4cac351707bc9eaabfb853c Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 22 May 2023 15:53:31 -0400 Subject: configure: Deal with more variations of the 'ld' version output eg, our current toolchian generates this: GNU ld (GNU Binutils) 2.26.1 But the system toolchain on the buildserver generates this: GNU ld version 2.37-37.fc36 Change-Id: I0166f12d660654c1456289954fb256db98213618 --- tools/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/configure b/tools/configure index 651346ecd8..1f758a967d 100755 --- a/tools/configure +++ b/tools/configure @@ -4360,7 +4360,7 @@ gccver=`$CC -dumpversion`; if [ $uname = "Darwin" ]; then ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'` else - ldver=`$LD --version | head -n 1 | sed -e 's/\ /\n/g' | tail -n 1` + ldver=`$LD --version | sed -n '1p' | sed -e 's/.* \([0-9]*\)\.\([0-9]*\).*/\1\2/'` fi # Convert LD version to a number major*100 + minor -- cgit v1.2.3