bitcoin/depends/packages
fanquake bd49ac4168
build: fix libnatpmp macos cross compile
Currently, our cross-compile of libnatpmp for macOS doesn't work at all.
The wrong archiver is used, which produces an archive the linker doesn't like.
This becomes clear when configuring:
```bash
configure:25722: checking for initnatpmp in -lnatpmp
configure:25747: env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH -u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH -u LIBRARY_PATH /home/ubuntu/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang++ --target=x86_64-apple-darwin18 <trim>  -Wl,-headerpad_max_install_names -Wl,-dead_strip -Wl,-dead_strip_dylibs conftest.cpp -lnatpmp   >&5
ld: archive has no table of contents for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

Fix this by using the right `ar` (we do the same for upnp).

While we're at it, we fixe the build so that we are using our c/ppflags.
This  means building with `-O2` rather than `-Os`.

Note that this fixes an issue that is also fixed by #21209.
However, given there are reservations about updating to use a newer libnatpmp source, we should just fix this for now.
2021-03-01 14:00:36 +08:00
..
bdb.mk Android : Ensure pic build for bdb 2020-12-04 01:57:54 +02:00
boost.mk build: don't build or use Boost Thread 2021-02-02 12:38:22 +08:00
capnp.mk depends: add MULTIPROCESS depends option 2020-05-12 09:47:06 -04:00
expat.mk build: pass --enable-option-checking to applicable packages 2019-10-11 13:31:50 -04:00
fontconfig.mk build: use patch rather than sed in fontconfig package 2020-08-25 14:37:35 +08:00
freetype.mk build: pass --enable-option-checking to applicable packages 2019-10-11 13:31:50 -04:00
libevent.mk build: pass _WIN32_WINNT=0x0601 when building libevent for Windows 2020-06-30 13:25:09 +08:00
libmultiprocess.mk depends: add MULTIPROCESS depends option 2020-05-12 09:47:06 -04:00
libnatpmp.mk build: fix libnatpmp macos cross compile 2021-03-01 14:00:36 +08:00
libXau.mk build: pass --enable-option-checking to applicable packages 2019-10-11 13:31:50 -04:00
libxcb.mk build: pass --enable-option-checking to applicable packages 2019-10-11 13:31:50 -04:00
miniupnpc.mk build: replace wingenminiupnpcstrings sed with a patch in miniupnpc package 2020-08-26 11:27:31 +08:00
native_b2.mk depends: boost: Split into non-/native packages 2020-11-23 15:50:54 -05:00
native_capnp.mk depends: add MULTIPROCESS depends option 2020-05-12 09:47:06 -04:00
native_cctools.mk Revert "Add patch to make codesign_allocate compatible with Apple's" 2021-01-04 16:35:18 -08:00
native_ds_store.mk depends: native_ds_store 1.3.0 2020-11-11 08:01:02 +08:00
native_libdmg-hfsplus.mk depends: Use $($(package)_cmake) instead of cmake 2020-08-07 20:52:22 -04:00
native_libmultiprocess.mk depends: add MULTIPROCESS depends option 2020-05-12 09:47:06 -04:00
native_mac_alias.mk build: mac_alias 2.1.1 2020-11-30 15:39:09 +08:00
packages.mk net: Add libnatpmp support 2021-01-07 18:07:09 +02:00
qrencode.mk Merge #16110: depends: Add Android NDK support 2019-11-04 13:32:19 +01:00
qt.mk doc: fix various typos 2021-01-04 12:31:31 +08:00
sqlite.mk Add sqlite to travis and depends 2020-10-14 11:18:13 -04:00
xcb_proto.mk depends: don't configure xcb_proto 2019-12-08 17:55:11 -05:00
xproto.mk build: pass --enable-option-checking to applicable packages 2019-10-11 13:31:50 -04:00
zeromq.mk depends: build zeromq with -std=c++17 2020-11-24 10:18:06 +08:00
zlib.mk Android: add all arch support 2019-10-18 22:24:21 +02:00