NetBSD

ScarletNX builds for NetBSD 11 on x86-64. It is a secondary platform: CI doesn't build it, and support is the code and the preset below. No NetBSD machine has run it yet.

Building

The netbsd-x86_64-cross preset cross-builds from Linux with Clang and LLD against a NetBSD sysroot. scripts/netbsd-sysroot.sh makes one without root: NetBSD's base and comp sets (the C library, and its headers, crt files and libgcc, which base lacks), and pkgsrc's SDL3, each checked against the SHA512 list it is published with.

scripts/netbsd-sysroot.sh .cache/netbsd-sysroot
export SNX_SYSROOT=$PWD/.cache/netbsd-sysroot
cmake --preset netbsd-x86_64-cross
cmake --build --preset netbsd-x86_64-cross

This build has not been built against the sysroot yet, and nothing has run: there is no emulator for NetBSD programs on Linux, and no NetBSD host.

What differs from the other hosts


Made from docs/hosts/netbsd.md at 69237645142c. GPL-3.0-or-later.