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
This commit is contained in:
parent
e7cc77e5b8
commit
56fe1129da
1 changed files with 1 additions and 1 deletions
2
tools/configure
vendored
2
tools/configure
vendored
|
@ -4360,7 +4360,7 @@ gccver=`$CC -dumpversion`;
|
||||||
if [ $uname = "Darwin" ]; then
|
if [ $uname = "Darwin" ]; then
|
||||||
ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
|
ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
# Convert LD version to a number major*100 + minor
|
# Convert LD version to a number major*100 + minor
|
||||||
|
|
Loading…
Reference in a new issue