Skip to content
Myr

Make 32-bit linux binary (partially) static (#523)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent f704b94 · Browse files · 2 files+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−1 removed

  • other:+5 added−1 removed

2 files+5 added−1 removed

modified:src/Dockerfile.centos+4 added
14 unmodified lines
15RUN cd / && curl \16 https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz | \17 tar -xz && mv go go1.51819# Install RPMs for building static 32-bit binary20RUN curl ftp://ftp.pbone.net/mirror/ftp.centos.org/6.7/os/i386/Packages/ncurses-static-5.7-4.20090207.el6.i686.rpm -o rpm && rpm -i rpm && \21 curl ftp://ftp.pbone.net/mirror/ftp.centos.org/6.7/os/i386/Packages/gpm-static-1.20.6-12.el6.i686.rpm -o rpm && rpm -i rpm2223ENV GOROOT_BOOTSTRAP /go1.424ENV GOROOT /go1.525ENV PATH /go1.5/bin:$PATH26
6 unmodified lines
modified:src/Makefile+1 added-1 removed
58 unmodified lines
59clean:60 cd fzf && rm -f fzf-*6162fzf/$(BINARY32): deps63 cd fzf && GOARCH=386 CGO_ENABLED=1 go build -a -o $(BINARY32)63 cd fzf && GOARCH=386 CGO_ENABLED=1 go build -a -tags "$(TAGS)" -o $(BINARY32)6465fzf/$(BINARY64): deps66 cd fzf && go build -a -tags "$(TAGS)" -o $(BINARY64)67
46 unmodified lines