summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ross <midgey@rockbox.org>2009-02-27 06:02:40 +0000
committerTom Ross <midgey@rockbox.org>2009-02-27 06:02:40 +0000
commit736f956700b1a0e29c9ebb533bf30212da6418ee (patch)
treee182d2df11b371dcdb459371b2f984a108bac7bf
parent4ae4e2307d114d422e46bdff319a85f2d22834b2 (diff)
downloadrockbox-736f956700b1a0e29c9ebb533bf30212da6418ee.tar.gz
rockbox-736f956700b1a0e29c9ebb533bf30212da6418ee.zip
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
-rwxr-xr-xtools/configure6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure
index aa46beca5d..04d8e8d93f 100755
--- a/tools/configure
+++ b/tools/configure
@@ -2217,7 +2217,11 @@ gccver=`$CC -dumpversion`;
2217 2217
2218# figure out the binutil version too and display it, mostly for the build 2218# figure out the binutil version too and display it, mostly for the build
2219# system etc to be able to see it easier 2219# system etc to be able to see it easier
2220ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'` 2220if [ $uname = "Darwin" ]; then
2221 ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
2222else
2223 ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2224fi
2221 2225
2222if [ -z "$gccver" ]; then 2226if [ -z "$gccver" ]; then
2223 echo "WARNING: The compiler you must use ($CC) is not in your path!" 2227 echo "WARNING: The compiler you must use ($CC) is not in your path!"