This is a companion patch for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221297
- If not set explicitly by the port, set CGO_ENABLED=1. CGO_ENABLED already defaults to 1 on all supported archs except ARM [1], so this change effectively just enables it on ARM.
- If not set explicitly by the port, set GOARM from ARCH for ARM archs.
[1] https://github.com/golang/go/blob/master/src/cmd/dist/build.go#L1486