Make CGO_ENABLED Configurable #17419
Labels
backport/v3.4
backport/v3.5
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
type/feature
What would you like to be added?
The value of
CGO_ENABLED
is hard-coded to0
. I would want to makeCGO_ENABLED
optionally configurable by passing an environment variable during runtime. When no environment variable is passed it will default to0
therefore keeping the build process intact as defined in the script.Ref: #17418
Why is this needed?
CGO_ENABLED
is an important Environment Variable required during Go compilation and build process. Making it configurable will allow consumers to build etcd as per their requirements, specifically I have come across FIPS compilation requirement which requires theCGO_ENABLED=1
. The suggested PR will not hinder the existing build process but allow users to configureCGO_ENABLED
environment variable as per their requirement.The text was updated successfully, but these errors were encountered: