Skip to content

Instantly share code, notes, and snippets.

View schahriar's full-sized avatar

Shawn SaffarShargh schahriar

View GitHub Profile
@schahriar
schahriar / _readme.md
Created April 17, 2022 20:47 — forked from steeve/_readme.md
How to cross compile Go with CGO programs for a different OS/Arch

How to cross compile Go with CGO programs for a different OS/Arch

It is possible to compile Go programs for a different OS, even though go build says otherwise.

You'll need: