3 ms·
It is known. I guess I could have written: I think someone should have wondered whether this was actually a reasonable way to make a statically linked binary b
by Aeolun 7y ago
It is known.
I guess I could have written: I think someone should have wondered whether this was actually a reasonable way to make a statically linked binary before.
Maybe if you’ve gotten used to invoking the magic it doesn’t seem quite so arcane anymore.
- hundt 7y agoFWIW if you don't need cgo then CGO_ENABLED=0 is sufficient to get a static binary. The tricky part is getting a static binary while also embedding C libraries. That's what the github issue is about.