https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89461 --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- Maybe libstdc++ should just link to libatomic unconditionally for your target.