3 ms·
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
by Orygin 1y ago
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).
- est 1y agotake numpy as an example, it's gfortran mixed with C. How does cgo handle that? And there's ffmpeg....
- Orygin 1y agoIf 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.