This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix libstdc++ tests requiring atomic support on hppa-hpux
On Tue, 12 Mar 2019, Hans-Peter Nilsson wrote:
> When is it appropriate to make the user add -latomic to link
> their program? Perhaps different answers for fortran and C++.
> I'm guessing "always when using any atomic construct" for C.
I think we should link with --as-needed -latomic --no-as-needed by default
when --as-needed is supported (see bug 81358).
--
Joseph S. Myers
joseph@codesourcery.com