Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rmohr/bazel-crosscompile

Demo on how to cross-compile a go binary with c dependencies to arm64 with a custom toolchain and bazeldnf
https://github.com/rmohr/bazel-crosscompile

Last synced: 14 days ago
JSON representation

Demo on how to cross-compile a go binary with c dependencies to arm64 with a custom toolchain and bazeldnf

Awesome Lists containing this project

README

        

=bazel cross-compile=

Run

```bash
bazel build //:hello_cgo
```

to cross-compile the hello.go binary with a C dependency to libvirt-libs for
arm64.

Initially copied from
https://github.com/ltekieli/bazel_cross_compile/tree/master/04_platforms and
modified to my demo needs.

This uses the gcc compiler provided by arm:
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads.