Skip to content

Commit 05e095f

Browse files
committed
cryptography now works
1 parent becb99e commit 05e095f

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

pythonforandroid/recipe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,8 @@ class CompiledComponentsPythonRecipe(PythonRecipe):
860860

861861
def get_recipe_env(self, arch):
862862
env = super(CompiledComponentsPythonRecipe, self).get_recipe_env(arch)
863+
env['LDFLAGS'] += ' -lpython2.7'
864+
env['LD_LIBRARY_PATH'] = "/data/data/{}/lib".format(self.ctx.appId)
863865
env['LDSHARED'] = env['CC'] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
864866
return env
865867

pythonforandroid/recipes/cffi/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def get_recipe_env(self, arch=None):
1515
recipe = self.get_recipe('libffi', self.ctx)
1616
dirs = recipe.get_include_dirs(arch)
1717
env['CFLAGS'] += ''.join([' -I' + dir for dir in dirs])
18-
env['LD_LIBRARY_PATH'] = "/data/data/{}/lib".format(self.ctx.appId)
1918
return env
2019

2120

pythonforandroid/recipes/cryptography/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def get_recipe_env(self, arch):
2424
env['CFLAGS'] += (' -include unistd-common.h' +
2525
''.join([' -I' + dir for dir in dirs]))
2626
env['OPENSSL_VERSION'] = recipe.version
27-
env['LD_LIBRARY_PATH'] = "/data/data/{}/lib".format(self.ctx.appId)
2827
return env
2928

3029

0 commit comments

Comments
 (0)