dash/depends/packages
Wladimir J. van der Laan 53ad08710c Merge #20195: build: fix mutex detection when building bdb on macOS
d0a829e9632379e42f0be5c554e3b692f0d14a95 build: fix mutex detection when building bdb on macOS (fanquake)

Pull request description:

  Starting with the Apple Clang shipped with Xcode 12, [Apple has enabled -Werror=implicit-function-declaration by default](https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes):
  > Clang now reports an error when you use a function without an explicit declaration when building C or Objective-C code for macOS (-Werror=implicit-function-declaration flag is on). This additional error detection unifies Clang’s behavior for iOS/tvOS and macOS 64-bit targets for this diagnostic. (49917738)

  This causes bdbs mutex detection to fail when building on macOS (not cross-compiling):
  ```bash
  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:
  ```bash
  configure:18704: checking for mutexes
  configure:18815: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -mmacosx-version-min=10.12 --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -o conftest -pipe -O2  -I/Users/michael/github/fanquake-bitcoin/depends/x86_64-apple-darwin19.6.0/include -L/Users/michael/github/fanquake-bitcoin/depends/x86_64-apple-darwin19.6.0/lib conftest.c  -lpthread >&5
  conftest.c:46:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
  main() {
  ^
  conftest.c:51:2: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
          exit (
          ^
  conftest.c:51:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
  1 warning and 1 error generated.
  ```

  Append `-Wno-error=implicit-function-declaration` to `cflags` so that `-Wimplicit-function-declaration` [returns to being a warning](https://clang.llvm.org/docs/UsersManual.html#cmdoption-wno-error), and the configure checks succeed.

  Fixes #19411.

ACKs for top commit:
  laanwj:
    Code review ACK d0a829e9632379e42f0be5c554e3b692f0d14a95

Tree-SHA512: 7813005b1fc0b370f843b6c0672acab32c999416e92c3f02b75d866e9c7aa41fe5822704fc74de6b65f0d7d94f2cdd05cc7c3ee83295ff1ecbc71d8492b9a2bf
2021-02-17 15:21:53 +01:00
..
backtrace.mk Fix compilation on Ubuntu 16.04 (#3013) 2019-07-02 23:45:33 +03:00
bdb.mk Merge #20195: build: fix mutex detection when building bdb on macOS 2021-02-17 15:21:53 +01:00
boost.mk Merge #17231: depends: fix boost mac cross build with clang 9+ 2021-02-17 14:53:57 +01:00
chia_bls.mk Fetch chia_bls from dashpay github repo (#3654) 2020-08-06 12:08:00 +03:00
dbus.mk Merge #10325: 0.15.0 Depends Updates 2019-06-19 08:20:15 -05:00
expat.mk Merge #12402: [depends] expat 2.2.5, ccache 3.4.1, miniupnpc 2.0.20180203 2020-05-17 02:31:35 -03:00
fontconfig.mk Merge #10851: depends: fix fontconfig with newer glibc 2018-01-30 08:47:50 +01:00
freetype.mk Backport bitcoin#14385: qt: avoid system harfbuzz and bz2 (#2732) 2019-03-01 18:29:48 +03:00
gmp.mk armv7l build support (#2601) 2019-01-05 08:53:37 +03:00
libevent.mk Merge #11286: [depends] Don't build libevent sample code 2020-01-10 10:33:55 -06:00
libICE.mk More gitian updates 2014-12-31 09:49:12 -07:00
libSM.mk More gitian updates 2014-12-31 09:49:12 -07:00
libX11.mk More gitian updates 2014-12-31 09:49:12 -07:00
libXau.mk More gitian updates 2014-12-31 09:49:12 -07:00
libxcb.mk depends: fix a static qt5 crash when using certain versions of libxcb 2015-03-16 23:45:15 -04:00
libXext.mk More gitian updates 2014-12-31 09:49:12 -07:00
miniupnpc.mk Merge #12466: depends: Only use D_DARWIN_C_SOURCE when building miniupnpc on darwin 2020-06-11 23:11:49 -05:00
native_biplist.mk Merge #12625: depends: biplist 1.0.3 2020-06-18 11:41:53 -05:00
native_cctools.mk Merge #9891: depends: make osx output deterministic 2018-01-26 12:59:29 +01:00
native_cdrkit.mk More gitian updates 2014-12-31 09:49:12 -07:00
native_ds_store.mk Merge #11460: [depends] mac_alias 2.0.6, ds_store 1.1.2 2020-02-08 23:33:25 -06:00
native_libdmg-hfsplus.mk More gitian updates 2014-12-31 09:49:12 -07:00
native_mac_alias.mk Merge #12417: Upgrade mac_alias to 2.0.7 2020-06-11 00:17:08 -05:00
native_protobuf.mk Bump native protobuf to 2.6.1 2015-12-10 10:00:24 +07:00
openssl.mk Merge #13543: depends: Add RISC-V support 2020-05-17 02:31:35 -03:00
packages.mk Merge #13696: Add aarch64 qt depends support for cross compiling bitcoin-qt 2020-07-28 21:35:31 -05:00
protobuf.mk Force to use C++11 mode for compilation (#1463) 2017-05-05 14:27:27 +03:00
qrencode.mk Backports 0.15 pr1 (#2590) 2019-01-03 12:18:47 +03:00
qt.mk depends|qt: Fix build on Mojave (10.14.6) 2020-12-18 15:09:04 +03:00
xcb_proto.mk More gitian updates 2014-12-31 09:49:12 -07:00
xextproto.mk Merge #13696: Add aarch64 qt depends support for cross compiling bitcoin-qt 2020-07-28 21:35:31 -05:00
xproto.mk More gitian updates 2014-12-31 09:49:12 -07:00
xtrans.mk More gitian updates 2014-12-31 09:49:12 -07:00
zeromq.mk Merge #13689: depends: disable Werror when building zmq 2020-06-11 23:11:18 -05:00
zlib.mk Merge #9973: depends: fix zlib build on osx 2018-01-26 12:59:29 +01:00