1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-07 13:31:37 +02:00
goreleaser/www/docs/cookbooks/cgo-and-crosscompiling.md
Artur Troian c55267f49f
docs: how to cross-compile Go with CGO (#1826)
* docs: how to cross-compile Go with CGO

Signed-off-by: Artur Troian <troian.ap@gmail.com>

* docs: update mkdocs

Signed-off-by: Artur Troian <troian.ap@gmail.com>

* docs: add extenstion to cookbook name

Signed-off-by: Artur Troian <troian.ap@gmail.com>

* docs: fix link to cgo-cross-compiling

Signed-off-by: Artur Troian <troian.ap@gmail.com>
2020-09-30 10:42:26 -03:00

6 lines
418 B
Markdown

# Cross-compiling Go with CGO
Best option to cross-compile Go project with CGO dependencies would be in using docker image.
[This project](https://github.com/troian/golang-cross) provides the [image](https://hub.docker.com/repository/docker/troian/golang-cross) with bunch of ready to use cross-compilers as well as how-to make sysroot.
All that wrapped into [example](https://github.com/troian/golang-cross-example)