Skip to content

Commit

Permalink
remove CGO_ENABLED when compiling client to ensure it is statically l…
Browse files Browse the repository at this point in the history
…inked
  • Loading branch information
francoismichel committed Dec 14, 2023
1 parent 6305b47 commit f8b841a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .goreleaser-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ builds:
id: "ssh3"
main: ./cli/client/main.go
binary: ssh3
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
Expand All @@ -32,6 +30,8 @@ builds:
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
ldflags:
- -extldflags=-static
-
id: "ssh3-server"
main: ./cli/server/main.go
Expand All @@ -47,6 +47,8 @@ builds:
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
ldflags:
- -extldflags=-static

archives:
- format: tar.gz
Expand Down

0 comments on commit f8b841a

Please sign in to comment.