From 78db324970df6e094096237e520719aef550c9a9 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Fri, 15 Jan 2021 10:54:07 +0800 Subject: [PATCH] partial bitcoin#20938: fix linking against -latomic when building for riscv includes: - 54ce4fac80689621dcbcc76169b2b00b179ee743 --- build-aux/m4/l_atomic.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-aux/m4/l_atomic.m4 b/build-aux/m4/l_atomic.m4 index 75c43f9a92..5201a8cc7c 100644 --- a/build-aux/m4/l_atomic.m4 +++ b/build-aux/m4/l_atomic.m4 @@ -14,6 +14,9 @@ m4_define([_CHECK_ATOMIC_testbody], [[ #include int main() { + std::atomic lock{true}; + std::atomic_exchange(&lock, false); + std::atomic a{}; int64_t v = 5;