Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
ptman
8y ago
0 comments
Share
You can usually build fully static by doing
CGO_ENABLED=0 go build
even when using os/user or net/
0 comments
default
newest
oldest
sebcat
8y ago
At a computer with go1.4.2 freebsd/amd64 ATM (earlier was go1.8.1 linux/amd64 IIRC) and the above os/user example results in a dynamically linked ELF when built with CGO_ENABLED set to 0.
j
/
k
navigate · click thread line to collapse