forked from len0rd/rockbox
The built-in ld on OS X does not understand the --version flag so use -v instead and parse the output into something somewhat useful.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20123 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4ae4e2307d
commit
736f956700
1 changed files with 5 additions and 1 deletions
6
tools/configure
vendored
6
tools/configure
vendored
|
|
@ -2217,7 +2217,11 @@ gccver=`$CC -dumpversion`;
|
|||
|
||||
# figure out the binutil version too and display it, mostly for the build
|
||||
# system etc to be able to see it easier
|
||||
ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
|
||||
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/[^0-9.]//g'`
|
||||
fi
|
||||
|
||||
if [ -z "$gccver" ]; then
|
||||
echo "WARNING: The compiler you must use ($CC) is not in your path!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue