To me this seems like a rust linking issue, the C file compiled with gcc, then linked against a C stub works just fine for me.
Versus rustc tries to be annoyingly clever and calls `cc` to link with `-nodefaultlibs` and tries to manually provide all the required libraries, which makes it promptly fail........
It seems like we should fix rustc instead of meson here, but I'll do more investigation first to see if changing the link args that rustc uses actually helps.
To me this seems like a rust linking issue, the C file compiled with gcc, then linked against a C stub works just fine for me.
Versus rustc tries to be annoyingly clever and calls `cc` to link with `-nodefaultlibs` and tries to manually provide all the required libraries, which makes it promptly fail........
It seems like we should fix rustc instead of meson here, but I'll do more investigation first to see if changing the link args that rustc uses actually helps.