mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
Add update about cross to freebsd-docker
This commit is contained in:
parent
cea5c57ef0
commit
154e83459d
2 changed files with 9 additions and 1 deletions
|
@ -5,6 +5,12 @@ binaries from a Docker container, without using (slow) emulation/virtual
|
||||||
machines. This post describes how it works and how to add it to your own Rust
|
machines. This post describes how it works and how to add it to your own Rust
|
||||||
project.
|
project.
|
||||||
|
|
||||||
|
**Update 27 March 2019:** Stephan Jaekel pointed out [on Twitter][cross-twitter]
|
||||||
|
that [cross] supports a variety of OSes including FreeBSD, NetBSD, Solaris, and
|
||||||
|
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
|
||||||
|
educational for me but I would recommend using cross instead.
|
||||||
|
|
||||||
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:
|
||||||
|
@ -133,3 +139,5 @@ Previous Post: [My First 3 Weeks of Professional Rust](/technical/2019/03/first-
|
||||||
|
|
||||||
[freebsd-cross-upstream]: https://github.com/sandvine/freebsd-cross-build
|
[freebsd-cross-upstream]: https://github.com/sandvine/freebsd-cross-build
|
||||||
[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]: https://github.com/rust-embedded/cross
|
||||||
|
|
|
@ -4,7 +4,7 @@ extra: How to cross-compile Rust projects for FreeBSD using Docker, without emul
|
||||||
kind: article
|
kind: article
|
||||||
section: technical
|
section: technical
|
||||||
created_at: 2019-03-25 15:45:00.000000000 +11:00
|
created_at: 2019-03-25 15:45:00.000000000 +11:00
|
||||||
#updated_at: 2019-03-24T17:28:56+11:00
|
updated_at: 2019-03-30T10:02:56+11:00
|
||||||
keywords:
|
keywords:
|
||||||
- rust
|
- rust
|
||||||
- freebsd
|
- freebsd
|
||||||
|
|
Loading…
Reference in a new issue