1
0
mirror of https://github.com/golang/go synced 2024-10-01 20:18:33 -06:00
go/dashboard/env/linux-x86-gccgo/Dockerfile
Chris Manghane f0c7ec0ef3 dashboard/env: add gccgo amd64 builder
LGTM=bradfitz
R=bradfitz
CC=adg, golang-codereviews
https://golang.org/cl/139250043
2014-09-05 11:08:15 -07:00

24 lines
928 B
Docker

# Copyright 2014 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# gobuilders/linux-x86-gccgo for 64-bit gccgo.
FROM gobuilders/linux-x86-base
MAINTAINER golang-dev <golang-dev@googlegroups.com>
ENV DEBIAN_FRONTEND noninteractive
# For using numeric libraries within GCC.
RUN apt-get install -y --no-install-recommends libgmp10-dev libmpc-dev libmpfr-dev
# For building binutils and gcc from source.
RUN apt-get install -y --no-install-recommends make g++ flex bison
# gccgo uses the Gold linker from binutils.
ENV BINUTILS_VERSION binutils-2.24
RUN curl -s http://ftp.gnu.org/gnu/binutils/$BINUTILS_VERSION.tar.gz | tar x --no-same-owner -zv
RUN mkdir binutils-objdir
RUN cd binutils-objdir && ../$BINUTILS_VERSION/configure --enable-gold --enable-plugins --prefix=/opt/gold
RUN cd binutils-objdir && make -sj && make install -sj