diff options
| author | fanquake <[email protected]> | 2020-10-20 17:10:45 +0800 |
|---|---|---|
| committer | fanquake <[email protected]> | 2020-10-27 21:30:12 +0800 |
| commit | d0a829e9632379e42f0be5c554e3b692f0d14a95 (patch) | |
| tree | ef132f8bef9c60adaf26455765f819deff1db594 /src/script/script.cpp | |
| parent | Merge #20125: rpc, wallet: Expose database format in getwalletinfo (diff) | |
| download | discoin-d0a829e9632379e42f0be5c554e3b692f0d14a95.tar.xz discoin-d0a829e9632379e42f0be5c554e3b692f0d14a95.zip | |
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.
Diffstat (limited to 'src/script/script.cpp')
0 files changed, 0 insertions, 0 deletions