Use CGO_ENABLED=0 (#421)

Set `CGO_ENABLED` to 0 when building
This commit is contained in:
Jake Howard 2021-11-04 18:20:44 +00:00 committed by GitHub
parent a22c134bf5
commit eb66e13dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Build against go 1.17. (#553)
- Build with CGO_ENABLED=0 set, to create more portable binaries. This could
have an affect on DNS resolution if you rely on anything non-standard. (#421)
### Deprecated
- The `preferred_ranges` option has been supported as a replacement for

View File

@ -2,6 +2,8 @@ GOMINVERSION = 1.17
NEBULA_CMD_PATH = "./cmd/nebula"
GO111MODULE = on
export GO111MODULE
CGO_ENABLED = 0
export CGO_ENABLED
# Set up OS specific bits
ifeq ($(OS),Windows_NT)