summaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorChristopher Wedgwood <cw@f00f.org>2011-10-13 12:25:25 -0400
committerChristopher Wedgwood <cw@f00f.org>2011-10-13 12:25:25 -0400
commitba6b0bff1d19f0495f8b545b5684ecf421365d36 (patch)
tree916b5ff023933ccd14e639286e7ee1a0c4d6f578 /src/make.bash
parentaaa5d669a54f807f75505c1c8cfed09a8bdacc7a (diff)
downloadgo-ba6b0bff1d19f0495f8b545b5684ecf421365d36.tar.gz
make.bash: more robustly detect gold 2.20
On recent Debian systems the gold 2.20 check triggers though Debian doesn't have version 2.20 but rather has: GNU gold (GNU Binutils for Debian 2.21.52.20110606) 1.11 ^^^^ R=rsc, iant CC=golang-dev http://codereview.appspot.com/5252055 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/make.bash b/src/make.bash
index 84b9908f4..57a57077c 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -10,7 +10,7 @@ if [ ! -f env.bash ]; then
fi
. ./env.bash
-if ld --version 2>&1 | grep 'gold.*2\.20' >/dev/null; then
+if ld --version 2>&1 | grep 'gold.* 2\.20' >/dev/null; then
echo 'ERROR: Your system has gold 2.20 installed.'
echo 'This version is shipped by Ubuntu even though'
echo 'it is known not to work on Ubuntu.'