From 944e47da87eed8c6fd379f78daf989025dbfc997 Mon Sep 17 00:00:00 2001 From: opacam Date: Sun, 21 Oct 2018 13:55:37 +0200 Subject: [PATCH] Force openssl to use use same api as python 3 To avoid linkage errors when building python3. --- pythonforandroid/recipes/openssl/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pythonforandroid/recipes/openssl/__init__.py b/pythonforandroid/recipes/openssl/__init__.py index 2e6e899c14..138ee78917 100644 --- a/pythonforandroid/recipes/openssl/__init__.py +++ b/pythonforandroid/recipes/openssl/__init__.py @@ -60,7 +60,8 @@ def build_arch(self, arch): # ^ # crypto/aes/bsaes-armv7.S:1434:14: error: immediate operand must be in the range [0,4095] # sub r6, r8, #.LREVM0SR-.LSR @ pass constants - shprint(perl, 'Configure', 'shared', 'no-dso', 'no-asm', buildarch, _env=env) + shprint(perl, 'Configure', 'shared', 'no-dso', 'no-asm', buildarch, + '-D__ANDROID_API__={}'.format(self.ctx.ndk_api), _env=env) self.apply_patch('disable-sover.patch', arch.arch) # check_ssl = partial(self.check_symbol, env, 'libssl' + self.version + '.so')