HomePhabricator

build: fix mutex detection when building bdb on macOS

Description

build: fix mutex detection when building bdb on macOS

Summary:

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

Backport of core#20195.

Test Plan: Run the guix osx build.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D17253

Details

Provenance
fanquake <fanquake@gmail.com>Authored on Oct 20 2020, 09:10
FabienCommitted on Fri, Nov 29, 19:10
FabienPushed on Fri, Nov 29, 19:10
Reviewer
Restricted Project
Differential Revision
D17253: build: fix mutex detection when building bdb on macOS
Parents
rABC57b456de2118: contrib: add macOS test for fixup_chains usage
Branches
Unknown
Tags
Unknown