Skip to content

Commit

Permalink
Make all binaries static (#58)
Browse files Browse the repository at this point in the history
* Make all binaries static
  • Loading branch information
buzzy authored Mar 27, 2023
1 parent 9a91e02 commit c082f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ do

BINARY="scalr-cli_${VERSION}_${GOOS}_${GOARCH}${EXT}"

GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-s -w" -o bin/$BINARY .
CGO_ENABLED=0 GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-s -w" -o bin/$BINARY -a -ldflags '-extldflags "-static"' .
cd bin
chmod +x $BINARY
mv $BINARY "scalr${EXT}"
Expand Down

0 comments on commit c082f29

Please sign in to comment.