aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-10-20 17:10:45 +0800
committerfanquake <fanquake@gmail.com>2020-10-30 08:08:01 +0800
commit314e79581f05881284ed9dfb661754830ed54833 (patch)
treef40d0a12a7044c017c699f047d9471a8a27e0004 /contrib
parent1f67a30e8374951997af924293c60eff56ae39ed (diff)
downloadbitcoin-314e79581f05881284ed9dfb661754830ed54833.tar.xz
build: fix mutex detection when building bdb on macOS
Starting with the Clang shipped with Xcode 12, Apple has enabled -Werror=implicit-function-declaration by default. This causes bdbs mutex detection to fail when building on macOS (not cross-compiling): checking for mutexes... UNIX/fcntl configure: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM. configure: error: Unable to find a mutex implementation as previously emitted warnings are being turned into errors. i.e: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] Append -Wno-error=implicit-function-declaration to cflags so that -Wimplicit-function-declaration returns to being a warning, and the configure checks will succeed. Fixes #19411. Github-Pull: #20195 Rebased-From: d0a829e9632379e42f0be5c554e3b692f0d14a95
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions