aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-10-10 21:01:54 +0800
committerfanquake <fanquake@gmail.com>2022-10-10 21:04:32 +0800
commit57c192767b0e24e51f2f777668ba6f5173f8960d (patch)
tree2b1c77c3478214a871c387f3c96c810ff0ee03f0 /depends
parent239757409bd6a966a9dde1288d3b8f2ea932e683 (diff)
parent8b8edc25c13a3e613770bf38b21a2556192e6315 (diff)
downloadbitcoin-57c192767b0e24e51f2f777668ba6f5173f8960d.tar.xz
Merge bitcoin/bitcoin#25322: build: Fix `capnp` package build for Android
8b8edc25c13a3e613770bf38b21a2556192e6315 build: Specify native binaries explicitly when building `capnp` package (Hennadii Stepanov) a413595c37f51557f9506e0a279cd80fc9a6fb36 build: Fix `capnp` package build for Android (Hennadii Stepanov) Pull request description: On master (e3c08eb620a2f317fc09fdf20969fa26f02afb91): ``` $ make -C depends capnp MULTIPROCESS=1 HOST=aarch64-linux-android ANDROID_SDK=$ANDROID_HOME ANDROID_NDK=$ANDROID_HOME/ndk/23.2.8568313 ANDROID_API_LEVEL=28 ANDROID_TOOLCHAIN_BIN=$ANDROID_HOME/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/bin ... ld: error: unable to find library -lkj ... ``` This PR fixes this error, and also improves configuring according to the docs. ACKs for top commit: ryanofsky: Code review ACK 8b8edc25c13a3e613770bf38b21a2556192e6315. I'd be a little curious to know what causes the error and how `--disable-shared` fixes it, but these changes all look good Tree-SHA512: 1b07b75f2a83932d8dc1f007e42a67d8327bd5fe4566f554dab4599e2a1e04b0144648790a1fd2ab1c295dba728586035aa0ebdbe5cf49df048ec87736895aaf
Diffstat (limited to 'depends')
-rw-r--r--depends/packages/capnp.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/depends/packages/capnp.mk b/depends/packages/capnp.mk
index 8a3a14810d..f4778c1ecd 100644
--- a/depends/packages/capnp.mk
+++ b/depends/packages/capnp.mk
@@ -6,8 +6,15 @@ $(package)_file_name=$(native_$(package)_file_name)
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
$(package)_dependencies=native_$(package)
+define $(package)_set_vars :=
+$(package)_config_opts := --with-external-capnp
+$(package)_config_opts += CAPNP="$$(native_capnp_prefixbin)/capnp"
+$(package)_config_opts += CAPNP_CXX="$$(native_capnp_prefixbin)/capnp-c++"
+$(package)_config_opts_android := --disable-shared
+endef
+
define $(package)_config_cmds
- $($(package)_autoconf) --with-external-capnp
+ $($(package)_autoconf)
endef
define $(package)_build_cmds