Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you don't need to link C lib, you can build any combination of arch and OS for a golang program. The default tooling allows you to do so easily.

If you need to link a C lib, there are ways to set it up to compile other OS (and maybe other archs).



take numpy as an example, it's gfortran mixed with C. How does cgo handle that?

And there's ffmpeg....


If you got object files you can compile whatever if you have the compiler toolset. I have made a go program that links ffmpeg and is built from linux to Windows and Macos. It was not super easy but it's doable.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: