constabulary / gb

gb, the project based build tool for Go
https://getgb.io/
MIT License
2.15k stars 150 forks source link

Treat CGO_ENABLED="0" the same as cross-compiling. #726

Open NegativeMjark opened 7 years ago

NegativeMjark commented 7 years ago

This means that explicitly disabling cgo using CGO_ENABLED="0" in order to get a static binary will work even when the libraries in GOROOT have been compiled with cgo enabled.

This could be an easy work around for #328

MrSaints commented 6 years ago

Any updates on this?