bitcoin/depends/packages
fanquake 207a228773
Merge bitcoin/bitcoin#25697: depends: expat 2.4.8 & fix building with -flto
e838a98475 depends: re-enable using -flto when building expat (fanquake)
304452558c depends: expat 2.4.8 (fanquake)

Pull request description:

  Currently, when building the expat package in depends, using `-flto` (`LTO=1`), the configure check can fail, because it cannot determine the system endianess:
  ```bash
  configure:18718: result: unknown
  configure:18733: error: unknown endianness
   presetting ac_cv_c_bigendian=no (or yes) will help
  ```

  Fix that by defining `_DEFAULT_SOURCE`, which in turn defines `__USE_MISC` (`features.h`):
  ```c
  #if defined _DEFAULT_SOURCE
  # define __USE_MISC1
  #endif
  ```
  which exposes additional definitions in `endian.h`:
  ```c
  #include <features.h>

  /* Get the definitions of __*_ENDIAN, __BYTE_ORDER, and __FLOAT_WORD_ORDER.  */
  #include <bits/endian.h>

  #ifdef __USE_MISC
  # define LITTLE_ENDIAN__LITTLE_ENDIAN
  # define BIG_ENDIAN__BIG_ENDIAN
  # define PDP_ENDIAN__PDP_ENDIAN
  # define BYTE_ORDER__BYTE_ORDER
  #endif
  ```
  and gives us a working configure.

  You could test building this change with Guix + LTO with [this branch](https://github.com/fanquake/bitcoin/tree/lto_in_guix). Note that that build may fail for other reasons (on x86_64), unrelated to this change.

  Some related upstream discussion:
  https://bugs.gentoo.org/757681
  https://forums.gentoo.org/viewtopic-t-1013786.html

ACKs for top commit:
  hebasto:
    re-ACK e838a98475, only [suggested](https://github.com/bitcoin/bitcoin/pull/25697#discussion_r929735675) changes since my recent [review](https://github.com/bitcoin/bitcoin/pull/25697#pullrequestreview-1050657421).
  jarolrod:
    code review ACK e838a98475

Tree-SHA512: 9dbf64c9bd1fd995a4d1addc011ffeff83d50df736030012346c97605e63aed4b5bac390a81abe646c1be28ad6fd600f64560dcb26bbc2edf5d513ca3b180bfa
2022-07-27 12:56:17 +01:00
..
bdb.mk build: add and use CXX_STANDARD in depends 2022-06-16 17:01:05 +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: don't install deprecated libevent headers 2022-03-10 15:52:26 +00: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 depends: Fix typo 2022-01-04 18:26:12 +02: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: use latest config.guess and config.sub for cctools 2021-07-22 11:10:21 +08:00
native_clang.mk build: remove -f from clang cp invocation 2022-02-14 13:59:44 +00: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 build, refactor: Drop redundant $(package)_download_file assignments 2022-02-08 11:16:51 +02: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 depends: always use correct ar for win qt 2022-07-26 09:38:42 +01:00
sqlite.mk build: sqlite 3380500 in depends 2022-06-15 09:16:57 +01:00
systemtap.mk build: systemtap 4.7 2022-06-13 14:43:06 +01: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