Skip to content

Commit

Permalink
Disable CGO since it isn't used. (#117)
Browse files Browse the repository at this point in the history
This change will make the binaries work on any distro, as long as it's linux and the amd64/arm64 architecture matches, removing the need to have a separate binary for each distribution and distro version (no more libc requirement). Disabling CGO does not have an effect on this application functionality. It does however mean that a single amd64-compiled binary will work on every amd64 linux distribution and version.
  • Loading branch information
robertglonek authored May 31, 2024
1 parent cde03d8 commit 45dd484
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.vars
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ ifdef GOARCH
GO_ENV_VARS += GOARCH=$(GOARCH)
endif

GO_ENV_VARS += CGO_ENABLED=0

DOCKER_MULTI_ARCH_PLATFORMS = linux/amd64,linux/arm64

0 comments on commit 45dd484

Please sign in to comment.