diff options
author | Howard Chu <hyc@symas.com> | 2021-11-30 01:25:02 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2021-11-30 04:15:48 +0000 |
commit | 6e6ad80dc40db5fa41a50fc5b2973ec67ff67cd4 (patch) | |
tree | eb6b1f9ad7117a72b5ec502913698bc6affc4587 /contrib/depends/packages/openssl.mk | |
parent | Merge pull request #7910 (diff) | |
download | monero-6e6ad80dc40db5fa41a50fc5b2973ec67ff67cd4.tar.xz |
Fix Android OpenSSL build
depends didn't have target-specific overrides for _build_env
so ANDROID_NDK_HOME wasn't being set at build time.
This fix supersedes the manual edit of Configuration/15-android.conf.
Resolves #8095
Diffstat (limited to '')
-rw-r--r-- | contrib/depends/packages/openssl.mk | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/contrib/depends/packages/openssl.mk b/contrib/depends/packages/openssl.mk index 0dddca072..79c94a30b 100644 --- a/contrib/depends/packages/openssl.mk +++ b/contrib/depends/packages/openssl.mk @@ -7,10 +7,8 @@ $(package)_patches=fix_darwin.patch define $(package)_set_vars $(package)_config_env=AR="$($(package)_ar)" ARFLAGS=$($(package)_arflags) RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)" -$(package)_config_env_arm_android=ANDROID_NDK_HOME="$(host_prefix)/native" PATH="$(host_prefix)/native/bin" CC=clang AR=ar RANLIB=ranlib -$(package)_config_env_aarch64_android=ANDROID_NDK_HOME="$(host_prefix)/native" PATH="$(host_prefix)/native/bin" CC=clang AR=ar RANLIB=ranlib -$(package)_build_env_arm_android=ANDROID_NDK_HOME="$(host_prefix)/native" -$(package)_build_env_aarch64_android=ANDROID_NDK_HOME="$(host_prefix)/native" +$(package)_config_env_android=ANDROID_NDK_HOME="$(host_prefix)/native" PATH="$(host_prefix)/native/bin" CC=clang AR=ar RANLIB=ranlib +$(package)_build_env_android=ANDROID_NDK_HOME="$(host_prefix)/native" $(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl $(package)_config_opts+=no-capieng $(package)_config_opts+=no-dso @@ -52,7 +50,6 @@ endef define $(package)_preprocess_cmds sed -i.old 's|"engines", "apps", "test", "util", "tools", "fuzz"|"engines", "tools"|' Configure && \ - sed -i -e 's|cflags --sysroot.*",|cflags",|' Configurations/15-android.conf && \ patch -p1 < $($(package)_patch_dir)/fix_darwin.patch endef |