Skip to content

Commit

Permalink
Add build flags to create static binary (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt authored Jan 9, 2024
1 parent bc16fb6 commit 75a4ee0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ builds:
flags:
- -trimpath
ldflags:
- -extldflags "-lc -lrt -lpthread --static"
- -extldflags "-Wl,-z,stack-size=0x800000 --static"
tags:
- netgo
- osusergo
- id: suave-geth-linux-arm64
binary: suave-geth
main: ./cmd/geth
Expand All @@ -52,7 +55,10 @@ builds:
flags:
- -trimpath
ldflags:
- -extldflags "-lc -lrt -lpthread --static"
- -extldflags "-Wl,-z,stack-size=0x800000 --static"
tags:
- netgo
- osusergo
- id: suave-geth-windows-amd64
binary: suave-geth
main: ./cmd/geth
Expand Down

0 comments on commit 75a4ee0

Please sign in to comment.