diff options
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 2 |
1 files changed, 1 insertions, 1 deletions
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 |