link with libatomic on architectures that require it
authorThomas Krennwallner <tkren@kr.tuwien.ac.at>
Wed, 11 Mar 2020 10:50:20 +0000 (06:50 -0400)
committerAdrian Bunk <bunk@debian.org>
Sat, 19 Nov 2022 10:33:48 +0000 (10:33 +0000)
commite823eac17c7b96bc6492f6ae45d9703f5daf3a26
treec3011c75e435571f69a075a24b912d7d68c12b6c
parent67fcf7f7bfd19eb267b3e8e1e9afe9455d0f49c2
link with libatomic on architectures that require it

Last-Update: 2020-03-11
Forwarded: no

clingo requires c++11 threads with 64bit __atomic_exchange, we need to
link with libatomic on armel, powerpc, powerpcspe, m68k, mips, mipsel,
and sh4, see also https://gcc.gnu.org/wiki/Atomic and
https://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary

This patch was shamelessly adapted from
https://github.com/potassco/clasp/blob/master/CMakeLists.txt
https://github.com/potassco/clasp/commit/fe3e176e2813956000bb947479de2c3d80fe34be

Gbp-Pq: Name link-libatomic-check.patch
CMakeLists.txt