Files
ty 788b255e7e fix(netbsd): provide getentropy shim for NetBSD 9 cross-compilation
NetBSD 9 (used by cross-rs's x86_64-unknown-netbsd image) lacks the
getentropy symbol that aws-lc-sys references. getentropy/getrandom were
only added in NetBSD 10.0.

Add a Cross.toml pre-build hook that compiles a small static shim
implementing getentropy via sysctl(CTL_KERN, KERN_ARND) -- the same
mechanism NetBSD 9's own arc4random uses internally. The shim is made
available to the linker through target-specific RUSTFLAGS.
2026-07-06 13:28:54 +08:00
..
2021-06-06 23:25:20 +08:00

Build Standalone Binaries

Build with cross

cargo install cross
  • Build with cross
cross build --target x86_64-unknown-linux-musl

Predefined build routines

  • build-release: Build binaries with cross and packages outputs into release folder
  • build-host-release: Build binaries with host's Rust toolchain. *NIX shell script
  • build-host-release.ps1: Build binaries with host's Rust toolchain. PowerShell script