Skip to content

Commit

Permalink
Fix wrong python2 configure argument for openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
opacam committed Nov 21, 2018
1 parent b8b8aba commit 169a4da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pythonforandroid/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ def add_flags(include_flags, link_flags):
info('Activating flags for openssl')
recipe = Recipe.get_recipe('openssl', self.ctx)
add_flags(recipe.include_flags(arch), recipe.link_flags(arch))
self.configure_args += \
('--with-openssl=' + recipe.get_build_dir(arch.arch),)
return env

def get_recipe_env(self, arch=None, with_flags_in_cc=True):
Expand Down
9 changes: 9 additions & 0 deletions pythonforandroid/recipes/python3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from pythonforandroid.python import GuestPythonRecipe
from pythonforandroid.recipe import Recipe


class Python3Recipe(GuestPythonRecipe):
Expand Down Expand Up @@ -38,5 +39,13 @@ class Python3Recipe(GuestPythonRecipe):
'--prefix={prefix}',
'--exec-prefix={exec_prefix}')

def set_libs_flags(self, env, arch):
env = super(Python3Recipe, self).set_libs_flags(env, arch)
if 'openssl' in self.ctx.recipe_build_order:
recipe = Recipe.get_recipe('openssl', self.ctx)
self.configure_args += \
('--with-openssl=' + recipe.get_build_dir(arch.arch),)
return env


recipe = Python3Recipe()

0 comments on commit 169a4da

Please sign in to comment.