mirror of
https://github.com/golang/go.git
synced 2025-05-30 19:52:53 +00:00
build: diagnose Ubuntu's buggy copy of gold
R=iant, dsymonds CC=golang-dev https://golang.org/cl/4300041
This commit is contained in:
parent
000d60ac6f
commit
eedfc445a3
@ -10,6 +10,17 @@ if [ ! -f env.bash ]; then
|
|||||||
fi
|
fi
|
||||||
. ./env.bash
|
. ./env.bash
|
||||||
|
|
||||||
|
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.'
|
||||||
|
echo 'Binaries built with this linker are likely to fail in mysterious ways.'
|
||||||
|
echo
|
||||||
|
echo 'Run sudo apt-get remove binutils-gold.'
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Create target directories
|
# Create target directories
|
||||||
if [ "$GOBIN" = "$GOROOT/bin" ]; then
|
if [ "$GOBIN" = "$GOROOT/bin" ]; then
|
||||||
mkdir -p "$GOROOT/bin"
|
mkdir -p "$GOROOT/bin"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user