https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98003
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Target Milestone|--- |11.0 Resolution|--- |FIXED --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- The test should pass now. Does the HP-UX linker support something like GNU ld's --as-needed? I wonder if it makes sense to make g++ always add -latomic when adding -lstdc++, or just link libstdc++.so to libatomic unconditionally.