Page MenuHomePhabricator

build: fix mutex detection when building bdb on macOS
ClosedPublic

Authored by Fabien on Fri, Nov 29, 17:41.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC8fc7a3d8a370: 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.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable