From 229c280c08f675a380ebedb5f7ca988a55827065 Mon Sep 17 00:00:00 2001 From: Sawood Alam Date: Sun, 25 Oct 2015 22:55:39 -0400 Subject: [PATCH] Static binary compilation, Closes #29 --- crossbuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crossbuild.sh b/crossbuild.sh index ff618e0..1da1371 100755 --- a/crossbuild.sh +++ b/crossbuild.sh @@ -11,7 +11,8 @@ for GOOS in darwin linux; do for GOARCH in 386 amd64; do export GOOS=$GOOS export GOARCH=$GOARCH - go build -v -o $binsdir/memgator-$GOOS-$GOARCH + export CGO_ENABLED=0 + go build -v -a -installsuffix cgo -o $binsdir/memgator-$GOOS-$GOARCH done done