]> Cypherpunks repositories - gostls13.git/commitdiff
make.bash: more robustly detect gold 2.20
authorChristopher Wedgwood <cw@f00f.org>
Thu, 13 Oct 2011 16:25:25 +0000 (12:25 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 13 Oct 2011 16:25:25 +0000 (12:25 -0400)
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

src/make.bash

index 84b9908f455f3748cec718e8238524d325165314..57a57077c72f5b26b2b598a5cc153c4b45a6dae2 100755 (executable)
@@ -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.'