[go-nuts] Re: Cross-Compile Windows 10 -> FreeBSD

2019-06-12 Thread B Carr
Thank you. Probably too hard for me. On Tuesday, June 11, 2019 at 10:09:49 PM UTC-6, Tamás Gulácsi wrote: > > Not hopeless, just hard. You need a cross-C-compiler, and use that. > > It's easier to compile on native en. > But you can try github.com/karalabe/xgo if you have Docker. > -- You recei

[go-nuts] Re: Cross-Compile Windows 10 -> FreeBSD

2019-06-11 Thread Tamás Gulácsi
Not hopeless, just hard. You need a cross-C-compiler, and use that. It's easier to compile on native en. But you can try github.com/karalabe/xgo if you have Docker. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group a

[go-nuts] Re: Cross-Compile Windows 10 -> FreeBSD

2019-06-11 Thread B Carr
To reply to myself, I just found this comment under ADDENDUM: "Cgo has issues when cross compiling. If you depend on cgo then you’re probably going to be better off building on the native platforms. The go tool will disable cgo support by default. To explicitly enable cgo, set CGO_ENABLED=1."