Add "-a" back to our "go build"

This commit is contained in:
Tianon Gravi 2013-12-16 23:43:47 -07:00
parent 124da338fd
commit a1c5e276f4
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ RUN apt-get install -y -q build-essential libsqlite3-dev
RUN curl -s https://go.googlecode.com/files/go1.2.src.tar.gz | tar -v -C /usr/local -xz
ENV PATH /usr/local/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
ENV GOPATH /go:/go/src/github.com/dotcloud/docker/vendor
RUN cd /usr/local/go/src && ./make.bash && go install -ldflags '-w -linkmode external -extldflags "-static -Wl,--unresolved-symbols=ignore-in-shared-libs"' -tags netgo -a std
RUN cd /usr/local/go/src && ./make.bash
# Ubuntu stuff
RUN apt-get install -y -q ruby1.9.3 rubygems libffi-dev

View file

@ -2,5 +2,5 @@
DEST=$1
go build -o $DEST/docker-$VERSION -ldflags "$LDFLAGS $LDFLAGS_STATIC" $BUILDFLAGS ./docker
go build -a -o $DEST/docker-$VERSION -ldflags "$LDFLAGS $LDFLAGS_STATIC" $BUILDFLAGS ./docker
echo "Created binary: $DEST/docker-$VERSION"