mirror of
https://github.com/golang/go
synced 2024-11-19 07:34:44 -07:00
0e613cdb27
LGTM=bradfitz R=bradfitz CC=golang-codereviews https://golang.org/cl/141320043
9 lines
363 B
Bash
Executable File
9 lines
363 B
Bash
Executable File
set -ex
|
|
|
|
# gccgo uses the Gold linker from binutils.
|
|
export BINUTILS_VERSION=binutils-2.24
|
|
mkdir -p binutils-objdir
|
|
curl -s http://ftp.gnu.org/gnu/binutils/$BINUTILS_VERSION.tar.gz | tar x --no-same-owner -zv
|
|
(cd binutils-objdir && ../$BINUTILS_VERSION/configure --enable-gold --enable-plugins --prefix=/opt/gold && make -sj && make install -sj)
|
|
|
|
rm -rf binutils* |