bitcoin/depends/packages
fanquake c40b1da2fd
depends: fix compiling bdb with clang-16 on aarch64
Compiling bdb with clang-16 on aarch64 (hardware) currently fails:
```bash
make -C depends/ bdb CC=clang CXX=clang++
...
checking for mutexes... UNIX/fcntl
configure: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM.
configure: error: Unable to find a mutex implementation
```

Looking at config.log we've got:
```bash
configure:18704: checking for mutexes
configure:18815: clang -o conftest -pipe -std=c11 -O2 -Wno-error=implicit-function-declaration -Wno-error=format-security    -I/bitcoin/depends/aarch64-unknown-linux-gnu/include -D_GNU_SOURCE -D_REENTRANT   -L/bitcoin/depends/aarch64-unknown-linux-gnu/lib conftest.c  -lpthread >&5
conftest.c:45:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main() {
^
int
conftest.c:50:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        exit (
        ^
conftest.c:50:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 warning and 1 error generated.
```

Clang-16 changed `-Wimplicit-function-declaration` and `-Wimplicit-int`
warnings into errors, see:
https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html#potentially-breaking-changes.

> The -Wimplicit-function-declaration and -Wimplicit-int warnings now
> default to an error in C99, C11, and C17. As of C2x, support for implicit
> function declarations and implicit int has been removed, and the
> warning options will have no effect. Specifying -Wimplicit-int in
> C89 mode will now issue warnings instead of being a noop.

Github-Pull: #27462
Rebased-From: f8b8458276
2023-04-18 09:29:55 +01:00
..
bdb.mk depends: fix compiling bdb with clang-16 on aarch64 2023-04-18 09:29:55 +01:00
boost.mk build: upgrade depends Boost to 1.77.0 2022-02-22 15:53:45 +00:00
capnp.mk depends: fix capnp's descriptor for make download 2022-02-02 17:55:20 +00:00
expat.mk depends: re-enable using -flto when building expat 2022-07-26 11:37:55 +01:00
fontconfig.mk build: Bump Fonconfig version up to 2.12.6 2021-12-03 17:39:17 +02:00
freetype.mk build: freetype 2.11.0 2021-12-03 14:07:10 +08:00
libevent.mk build: prune compat event headers 2022-08-24 16:10:00 +01:00
libmultiprocess.mk build: Fix libmultiprocess cross-compiling to Linux hosts 2022-05-01 10:41:32 +02:00
libnatpmp.mk build: compile libnatpmp with -DNATPMP_STATICLIB on Windows 2021-03-04 12:34:46 +08:00
libXau.mk build: libXau 1.0.9 2021-12-03 14:07:10 +08:00
libxcb.mk libxcb: use a patch instead of sed 2022-07-29 14:02:23 +01:00
libxcb_util.mk build: Use config_opts instead of passing a compiler flag directly 2021-12-12 18:08:43 +02:00
libxcb_util_image.mk build: add libxcb_util_image 0.4.0 2021-12-03 14:07:11 +08:00
libxcb_util_keysyms.mk build: add libxcb_util_keysyms 0.4.0 2021-12-03 14:07:11 +08:00
libxcb_util_render.mk build: add libxcb_util_render 0.3.9 2021-12-03 14:07:11 +08:00
libxcb_util_wm.mk build: add libxcb_util_wm 0.4.1 2021-12-03 14:07:12 +08:00
libxkbcommon.mk build: suppress array-bounds errors in libxkbcommon 2022-06-23 17:29:31 +01:00
miniupnpc.mk build: miniupnpc 2.2.2 2021-03-23 08:39:16 +08:00
native_capnp.mk depends: add MULTIPROCESS depends option 2020-05-12 09:47:06 -04:00
native_cctools.mk depends: don't restrict --enable-lto to non-guix cctools 2022-07-29 12:48:19 +01:00
native_clang.mk cctools: fixup building with LTO 2022-07-29 12:48:19 +01:00
native_ds_store.mk depends: update urls for dmg tools 2022-07-13 12:47:20 +01:00
native_libmultiprocess.mk build: specify cmake build dir for multiprocess depends build 2022-04-04 10:24:06 +01:00
native_libtapi.mk cctools: fixup building with LTO 2022-07-29 12:48:19 +01:00
native_mac_alias.mk depends: update urls for dmg tools 2022-07-13 12:47:20 +01:00
packages.mk build: don't compress macOS DMG 2022-04-11 10:34:30 +01:00
qrencode.mk Merge #16110: depends: Add Android NDK support 2019-11-04 13:32:19 +01:00
qt.mk build: Add -no-mimetype-database option to qt package in depends 2022-09-10 10:54:33 +02:00
sqlite.mk build: sqlite 3380500 in depends 2022-06-15 09:16:57 +01:00
systemtap.mk depends: fix systemtap download URL 2023-02-20 17:15:38 +00:00
xcb_proto.mk build: xcb_proto 1.14.1 2021-12-03 14:07:10 +08:00
xproto.mk build: xproto 7.0.31 2021-12-03 14:07:09 +08:00
zeromq.mk build: add and use CXX_STANDARD in depends 2022-06-16 17:01:05 +01:00