“Once I figured out the right flags in the target
cosmo.json, most of the bugs withstdwent away.”
One Rust binary, linked against Cosmopolitan Libc, that runs on Linux, Mac, Windows and BSD without a rebuild. Getting there took a custom target file and a bash script to filter linker arguments, because cargo doesn’t let you control linking. It works. It is also a hack held together with custom scripts.