Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zegl
on Feb 11, 2020
|
parent
|
context
|
favorite
| on:
I Was Wrong about Nix
Setting CGO_ENABLED=0 does not make the build fully static. To do this you currently need to set the following flags:
-ldflags '-extldflags "-fno-PIC -static"' -buildmode pie -tags 'osusergo netgo static_build'
See
https://github.com/golang/go/issues/26492
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: