>>106315939
Jesus christ it all worked out in the end. Now I have my custom linux "distro" with busybox, musl, gcc (+libstdc++), bash and pkgsrc (NetBSD's cross-platform package manager that builds packages you install from source) - But it's a mess, I have the build generally automated but I need to refactor it quite a bit. There's a small problem though - pkgsrc does not detect my ncurses or really any tools I've compiled manually before actually bootstrapping pkgsrc so when I install a package that has some dependency that's already on the system, pkgsrc will compile and install it to its own location again. Idk if that can even be fixed or if this is how pkgsrc is meant to work.
It's running just in a chroot in this screenshot but I have tested it in qemu beforehand (when I was still lacking pkgsrc and other stuff), so running in vm should be no problem.