The toolchain and sysroot are ours now in LFS's order (Makefile: mxheaders
-> tooldir -> sysroot (glibc) -> targetlibs -> toolchain); the Void-made
sysroot (tools/mksysroot.sh, base/void/sysroot-packages) is gone, the
frame points at build/mxsysroot-<dev>.
conf/mk.conf: what NetBSD's build needs to build src/ for a Linux target,
as MAKECONF, nothing changed in src/: the sysroot's library directories
for the -DNETBSD_TOOLS gcc (as src/tools/gcc/Makefile:162 does), and the
start files -- glibc's Scrt1/crti/crtn, gcc's crtbegin/crtend -- through
the ?= of bsd.gcc.mk and bsd.prog.mk. With it, src/lib/libz builds
unchanged with bsd.lib.mk through the tooldir's nbmake-evbarm64:
libz.so.1 (soname as on NetBSD), NEEDED only libc.so.6 and
ld-linux-aarch64.so.1, its symbol check against NetBSD's list empty.
Open: programs (bin/cat) need NetBSD's header additions (cdefs,
setprogname): libmxlinux and libnbcompat through the same mk.conf.
make userland (the port frame) waits for libz in the sysroot: libnbcompat's
configure requires zlib.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>