Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #119 from phrase/static-build
Browse files Browse the repository at this point in the history
Make build fully static
  • Loading branch information
theSoenke authored Apr 4, 2018
2 parents ac30ec3 + c14dbbd commit a31515b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/go_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function build {
name=$3
echo "build os=${goos} arch=${goarch}" > /dev/stderr

GOOS=$goos GOARCH=$goarch go build -o $bin_dir/${name} -ldflags "-X main.BUILT_AT=$CURRENT_DATE -X=main.REVISION=$REVISION -X=main.PHRASEAPP_CLIENT_VERSION=$VERSION -X=main.LIBRARY_REVISION=$LIBRARY_REVISION" .
CGO_ENABLED=0 GOOS=$goos GOARCH=$goarch go build -o $bin_dir/${name} -ldflags "-X main.BUILT_AT=$CURRENT_DATE -X=main.REVISION=$REVISION -X=main.PHRASEAPP_CLIENT_VERSION=$VERSION -X=main.LIBRARY_REVISION=$LIBRARY_REVISION -extldflags '-static'" .
}

build linux amd64 phraseapp_linux_amd64
Expand Down

0 comments on commit a31515b

Please sign in to comment.