Fix tools/cross_build_gcc.sh.
authorjacob.bramley@arm.com <jacob.bramley@arm.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 20 Feb 2014 16:37:40 +0000 (16:37 +0000)
committerjacob.bramley@arm.com <jacob.bramley@arm.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 20 Feb 2014 16:37:40 +0000 (16:37 +0000)
The cross_build_gcc.sh script didn't set LINK, so cross builds would
fail at the last step.

BUG=
R=ulan@chromium.org

Review URL: https://codereview.chromium.org/170843011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19514 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

tools/cross_build_gcc.sh

index b9e8728..e3603cc 100755 (executable)
@@ -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