Repository navigation
Commit 020617b
arm64-musl: set up rust cross-compilation for aarch64-musl
Following sxa's feedback that just adding `rust` and `cargo` apk
packages is insufficient for the cross-compiled arm64-musl recipe.
Alpine's `rust` package only ships the host (x86_64-musl) standard
library, so building `cargo --target=aarch64-unknown-linux-musl`
without a matching std artifact fails.
Pull the prebuilt `aarch64-unknown-linux-musl` std archive from the
upstream Rust dist server (version pinned to match the host toolchain,
SHA256 verified against the publisher's signed manifest) and drop it
into `/usr/lib/rustlib/`. Add a cargo config that points the
cross-compile linker at the musl-cross-make-built
`aarch64-linux-musl-gcc`.
Approach based on nikeee's exploratory commit at
nodejs@74ae38b
Refs: nodejs#227
Refs: nodejs/build#43161 parent 7623492 commit 020617b
1 file changed
Lines changed: 30 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
53 | 80 | | |
54 | 81 | | |
55 | 82 | | |
| |||
0 commit comments