mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
Add note to cross-compile-freebsd-rust-binary-with-docker
This commit is contained in:
parent
b6e7772471
commit
e2763c3caf
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,9 @@ more. I have used cross for embedded projects but didn't think to use it for
|
||||||
non-embedded ones. Nonetheless the process described in this post was still
|
non-embedded ones. Nonetheless the process described in this post was still
|
||||||
educational for me but I would recommend using cross instead.
|
educational for me but I would recommend using cross instead.
|
||||||
|
|
||||||
|
**Update 2 February 2020:** [Support for FreeBSD was removed from `cross` in May
|
||||||
|
2019][cross-freebsd-removal]. So the approach described here may well still be useful.
|
||||||
|
|
||||||
I started with [Sandvine's freebsd-cross-build][freebsd-cross-upstream] repo. Which builds
|
I started with [Sandvine's freebsd-cross-build][freebsd-cross-upstream] repo. Which builds
|
||||||
a Docker image with a cross-compiler that targets FreeBSD. I made a few updates
|
a Docker image with a cross-compiler that targets FreeBSD. I made a few updates
|
||||||
and improvements to it:
|
and improvements to it:
|
||||||
|
@ -138,6 +141,7 @@ Previous Post: [My First 3 Weeks of Professional Rust](/technical/2019/03/first-
|
||||||
Next Post: [What I Learnt Building a Lobsters TUI in Rust](/technical/2019/04/lobsters-tui/)
|
Next Post: [What I Learnt Building a Lobsters TUI in Rust](/technical/2019/04/lobsters-tui/)
|
||||||
|
|
||||||
[freebsd-cross-upstream]: https://github.com/sandvine/freebsd-cross-build
|
[freebsd-cross-upstream]: https://github.com/sandvine/freebsd-cross-build
|
||||||
|
[cross-freebsd-removal]: https://github.com/rust-embedded/cross/issues/274
|
||||||
[user namespaces]: https://docs.docker.com/engine/security/userns-remap/
|
[user namespaces]: https://docs.docker.com/engine/security/userns-remap/
|
||||||
[cross-twitter]: https://twitter.com/stephrdev/status/1110270815927500801
|
[cross-twitter]: https://twitter.com/stephrdev/status/1110270815927500801
|
||||||
[cross]: https://github.com/rust-embedded/cross
|
[cross]: https://github.com/rust-embedded/cross
|
||||||
|
|
Loading…
Reference in a new issue