Skip to content

Commit

Permalink
Smaller binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
xperimental committed Feb 23, 2017
1 parent 99ee179 commit 8087d21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ for os in $OS; do
for arch in $ARCH; do
echo "Building os=$os arch=$arch"
file="_build/linky-$os-$arch$ext"
GOOS=$os GOARCH=$arch go build -o "$file" .
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -o "$file" -ldflags "-w" .
upx -9 "$file"
done
done

0 comments on commit 8087d21

Please sign in to comment.