From 3196b9fb6c4f7f0bd4b9c7f3caa1252e30e9022c Mon Sep 17 00:00:00 2001 From: "jacob.bramley@arm.com" Date: Thu, 20 Feb 2014 16:37:40 +0000 Subject: [PATCH] Fix tools/cross_build_gcc.sh. 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/cross_build_gcc.sh b/tools/cross_build_gcc.sh index b9e8728..e3603cc 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 -- 2.7.4