1
0
mirror of https://github.com/golang/go synced 2024-11-13 17:10:21 -07:00

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
https://golang.org/cl/5252055
This commit is contained in:
Christopher Wedgwood 2011-10-13 12:25:25 -04:00 committed by Russ Cox
parent c18d1a78a4
commit 604bd70085

View File

@ -10,7 +10,7 @@ if [ ! -f env.bash ]; then
fi fi
. ./env.bash . ./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 'ERROR: Your system has gold 2.20 installed.'
echo 'This version is shipped by Ubuntu even though' echo 'This version is shipped by Ubuntu even though'
echo 'it is known not to work on Ubuntu.' echo 'it is known not to work on Ubuntu.'