]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix build on RISC-V (#856)
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 8 Jul 2021 17:06:49 +0000 (17:06 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 8 Jul 2021 18:31:46 +0000 (18:31 +0000)
commitb98c6823c72aeb40e8fe3d61bd061234f341db3d
tree2f083a8bdf30eae800b977acc226719bf16ea54c
parent300437197350ee4eb6d5f75b3cb8c35a7b9f29ed
Fix build on RISC-V (#856)

Compiling on RISC-V (without an explicit -latomic) fails with

    /usr/riscv64-linux-gnu/include/c++/10/ostream:611:
    undefined reference to __atomic_compare_exchange_1

Use std::atomic<uint8_t>::exchange() to detect whether -latomic
implements 1-byte compare-and-exchange API used by Squid.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
configure.ac