https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104338
palmer at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kito.cheng at gmail dot com --- Comment #6 from palmer at gcc dot gnu.org --- Kito pointed out earlier today that it should already be possible to default to libatomic via a --with-specs=... configure-time argument already, so one option here would be to just add an example/reference spec to GCC. That would allow distros to opt in to the "always link libatomic" behavior, if they want to risk the ABI-related issues like we see in libstdcxx (which we'd of course have to fix). It doesn't sort out the long-tail issues related to ABI compatibility between GCC and LLVM (and the suggested mappings), but at least it gives folks a unified mechanism for doing this. I know it's pretty late, but that seems like something we could do on the GCC-12 timeline. It seems like the distro folks are pretty fed up with waiting so they're just going to backport/hack this if we miss GCC-12, might as well have one way for that to happen.