aboutsummaryrefslogtreecommitdiff
path: root/build-aux/m4/l_atomic.m4
AgeCommit message (Collapse)Author
2022-07-18build: Check for std::atomic::exchange rather than std::atomic_exchangeAndrew Chow
Our usage of std::atomic is with it's own exchange function, not std::atomic_exchange. So we should be looking specifically for that function. Additionally, -pthread and -lpthread have an effect on whether -latomic will be needed, so the atomics check needs to use these flags as well. This will make the flags in use better match what is actually used when linking. This removes the need for -latomic for riscv builds, which resolves a guix cross architecture reproducibility issue.
2021-05-11build: improve macro for testing -latomic requirementMarcoFalke
2021-01-15build: improve macro for testing -latomic requirementfanquake
riscv builds are currently failing because -latomic isn't being linked against, when it is needed: ```bash /home/ubuntu/build/bitcoin/distsrc-riscv64-linux-gnu/src/bitcoin-util.cpp:98: undefined reference to `__atomic_exchange_1' ``` This exteneds our macro to ensure that -latomic is linked against when required.
2016-09-21Add MIT license to build-aux/m4 scriptsLuke Dashjr
2016-09-21Trivial: build-aux/m4/l_atomic: Fix typoLuke Dashjr
2016-08-23Add configure check for -latomicAnthony Towns