@whitequark I've always been anoyed that people use the compiler frontend in makefiles for linking (because you can link multiple languages but they have their own frontends), but using ld would require figuring out what the standard libraries of each language are, which can be difficult.
Could this mechanism be used to just make ld use all the right std libs automatically? Like, the frontend could just write in the .o that it needs libc, libstdc++, libstdrust-something-something, etc. right?