diff options
-rwxr-xr-x | tools/configure | 6 |
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 |
2220 | ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'` | 2220 | if [ $uname = "Darwin" ]; then |
2221 | ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'` | ||
2222 | else | ||
2223 | ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'` | ||
2224 | fi | ||
2221 | 2225 | ||
2222 | if [ -z "$gccver" ]; then | 2226 | if [ -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!" |