Re: Best practice for linking against libatomic?
Mathieu Malaterre via Gcc-help <[email protected]> Mon, 12 Jan 2026 18:12:26 +0100
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <CA+7wUszQmDXT1rb1rT_oTyArA_Q+ABtxMqEu0FFJt62cKxycBw@mail.gmail.com> |
Florian, On Mon, Jan 12, 2026 at 3:59 PM Florian Weimer <[email protected]> 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