Best practice for linking against libatomic?

Mathieu Malaterre mathieu.malaterre@gmail.com
Mon Jan 12 17:12:26 GMT 2026


Florian,

On Mon, Jan 12, 2026 at 3:59 PM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Mathieu Malaterre:
>
> > This has worked for while in Debian:
> >
> > * https://salsa.debian.org/science-team/tbb/-/blob/master/debian/rules?ref_type=heads#L31-34
> >
> > I've also written a cmake function to detect only when needed (see hwy/libjxl).
>
> It would be interesting to know which functionality needs libatomic.
> What are the linker errors you encountered?

I am not sure I understand your question. The linker errors were
related to the gcc generated symbols for the missing intrinsics on
powerpc/armel/riscv. Typically:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104248

-- 
Mathieu


More information about the Gcc-help mailing list