1
0
mirror of https://github.com/golang/go synced 2024-11-19 07:34:44 -07:00
go/dashboard/env/linux-x86-gccgo/scripts/install-gold.sh
Chris Manghane 0e613cdb27 dashboard/env: optimize linux docker image size for gccgo
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/141320043
2014-09-29 12:47:01 -07:00

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*