Re: [go-nuts] cross-compile mac to linux

2018-05-07 Thread alex . rou . sg
There's a tool for that, and yeah it uses docker. https://github.com/karalabe/xgo On Monday, 7 May 2018 22:32:00 UTC+8, mbanzon wrote: > > It was specifically stated that the code was CGO - this approach won’t > work unless there is a C compiler that is crosscompile enabled installed > already

Re: [go-nuts] cross-compile mac to linux

2018-05-07 Thread Michael Banzon
It was specifically stated that the code was CGO - this approach won’t work unless there is a C compiler that is crosscompile enabled installed already - I’m guessing the question is how to do that. In my experience the (by far) easiest way to do this is to set up a (Docker) container or a VM w

Re: [go-nuts] cross-compile mac to linux

2018-05-07 Thread Rohit Jain
*GOOS=linux GOARCH=amd64 go build* Try this? On Mon, May 7, 2018 at 8:56 AM, Steven Roth wrote: > Can anyone point me to a recipe or guidance on how to set up a > cross-compilation environment on a Mac that will allow me to build > CGO-enabled Go code to run on Ubuntu? The program I'm building

[go-nuts] cross-compile mac to linux

2018-05-06 Thread Steven Roth
Can anyone point me to a recipe or guidance on how to set up a cross-compilation environment on a Mac that will allow me to build CGO-enabled Go code to run on Ubuntu? The program I'm building is pure Go except for an unavoidable dependency on libsqlite3. Thanks in advance, Steve -- You receive