File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,6 @@ def add_flags(include_flags, link_flags):
194
194
info ('Activating flags for openssl' )
195
195
recipe = Recipe .get_recipe ('openssl' , self .ctx )
196
196
add_flags (recipe .include_flags (arch ), recipe .link_flags (arch ))
197
- self .configure_args += \
198
- ('--with-openssl=' + recipe .get_build_dir (arch .arch ),)
199
197
return env
200
198
201
199
def get_recipe_env (self , arch = None , with_flags_in_cc = True ):
Original file line number Diff line number Diff line change 1
1
from pythonforandroid .python import GuestPythonRecipe
2
+ from pythonforandroid .recipe import Recipe
2
3
3
4
4
5
class Python3Recipe (GuestPythonRecipe ):
@@ -38,5 +39,13 @@ class Python3Recipe(GuestPythonRecipe):
38
39
'--prefix={prefix}' ,
39
40
'--exec-prefix={exec_prefix}' )
40
41
42
+ def set_libs_flags (self , env , arch ):
43
+ env = super (Python3Recipe , self ).set_libs_flags (env , arch )
44
+ if 'openssl' in self .ctx .recipe_build_order :
45
+ recipe = Recipe .get_recipe ('openssl' , self .ctx )
46
+ self .configure_args += \
47
+ ('--with-openssl=' + recipe .get_build_dir (arch .arch ),)
48
+ return env
49
+
41
50
42
51
recipe = Python3Recipe ()
You can’t perform that action at this time.
0 commit comments