diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-05-08 22:34:59 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-05-08 22:40:18 -0400 |
commit | 54389dcf2f7c0f5f53bb1bfdb4cffde05d002ea2 (patch) | |
tree | d408189c851be6f175585dd81f0474509917dafe /tools | |
parent | e37cd0f2f59d04b7e18bc4a425c367f92523b1cd (diff) | |
download | rockbox-54389dcf2f7c0f5f53bb1bfdb4cffde05d002ea2.tar.gz rockbox-54389dcf2f7c0f5f53bb1bfdb4cffde05d002ea2.zip |
configure: fix test for LD version on non-macos systems
Change-Id: I6296a013def3e55b44cbba781f3a397a94d2c561
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/configure b/tools/configure index be4b0e3902..1a03f3f010 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -4409,15 +4409,14 @@ gccver=`$CC -dumpversion`; | |||
4409 | # system etc to be able to see it easier | 4409 | # system etc to be able to see it easier |
4410 | if [ $uname = "Darwin" ]; then | 4410 | if [ $uname = "Darwin" ]; then |
4411 | ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'` | 4411 | ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'` |
4412 | # Convert LD version to a number major*100 + minor | ||
4413 | ldnum1=`echo $ldver | cut -d . -f1` | ||
4414 | ldnum2=`echo $ldver | cut -d . -f2` | ||
4415 | ldnum=`(expr $ldnum1 "*" 100 + $ldnum2) 2>/dev/null` | ||
4412 | else | 4416 | else |
4413 | ldver=`$LD --version | sed -n '1p' | sed -e 's/.* \([0-9]*\)\.\([0-9]*\).*/\1\2/'` | 4417 | ldnum=`$LD --version | sed -n '1p' | sed -e 's/.* \([0-9]*\)\.\([0-9]*\).*/\1\2/'` |
4414 | fi | 4418 | fi |
4415 | 4419 | ||
4416 | # Convert LD version to a number major*100 + minor | ||
4417 | ldnum1=`echo $ldver | cut -d . -f1` | ||
4418 | ldnum2=`echo $ldver | cut -d . -f2` | ||
4419 | ldnum=`(expr $ldnum1 "*" 100 + $ldnum2) 2>/dev/null` | ||
4420 | |||
4421 | if test "$ldnum" -ge "227"; then | 4420 | if test "$ldnum" -ge "227"; then |
4422 | have_nocrossrefs_to="#define HAVE_NOCROSSREFS_TO" | 4421 | have_nocrossrefs_to="#define HAVE_NOCROSSREFS_TO" |
4423 | else | 4422 | else |