3 ms·
Can anyone explain why CGO_ENABLED needs to be set to 1 here?
by WesolyKubeczek 11mo ago
Can anyone explain why CGO_ENABLED needs to be set to 1 here?
- zsoltkacsandi 11mo agoIn the post it is set to 0. `CGO_ENABLED=0 go build -o init .` The only reason is because I like to be explicit, and I could not know what was set before in the user's environment.