| Index: tools/cross_build_gcc.sh
 | 
| diff --git a/tools/cross_build_gcc.sh b/tools/cross_build_gcc.sh
 | 
| index b9e87280db72a8c95d8f98db059e43f5664eacf5..e3603cc786a9b2cdbfee30a50d5fd7f4939974ee 100755
 | 
| --- a/tools/cross_build_gcc.sh
 | 
| +++ b/tools/cross_build_gcc.sh
 | 
| @@ -37,6 +37,7 @@ export AR=$1ar
 | 
|  export RANLIB=$1ranlib
 | 
|  export CC=$1gcc
 | 
|  export LD=$1g++
 | 
| +export LINK=$1g++
 | 
|  
 | 
|  OK=1
 | 
|  if [ ! -x "$CXX" ]; then
 | 
| @@ -59,6 +60,10 @@ if [ ! -x "$LD" ]; then
 | 
|    echo "Error: $LD does not exist or is not executable."
 | 
|    OK=0
 | 
|  fi
 | 
| +if [ ! -x "$LINK" ]; then
 | 
| +  echo "Error: $LINK does not exist or is not executable."
 | 
| +  OK=0
 | 
| +fi
 | 
|  if [ $OK -ne 1 ]; then
 | 
|    exit 1
 | 
|  fi
 | 
| 
 |