Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rmohr/bazel-crosscompile
- Owner: rmohr
- Created: 2021-03-29T15:10:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-29T15:11:07.000Z (over 3 years ago)
- Last Synced: 2024-10-19T19:20:38.696Z (30 days ago)
- Language: Starlark
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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.