Skip to content

Commit ccf019d

Browse files
committed
From #3115
Fixes the problem with the recipe for KiwiSolver and the current development branch of pythonforandroid.
1 parent b0efb9f commit ccf019d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pythonforandroid/recipes/kiwisolver/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@ class KiwiSolverRecipe(PyProjectRecipe):
88
depends = ['cppy']
99
need_stl_shared = True
1010

11+
# from https://github.com/kivy/python-for-android/issues/3115
12+
def get_recipe_env(self, arch, **kwargs):
13+
env = super().get_recipe_env(arch, **kwargs)
14+
flags = " -I" + self.ctx.python_recipe.include_root(arch.arch)
15+
env["CFLAGS"] = flags
16+
env["CPPFLAGS"] = flags
17+
return env
18+
1119

1220
recipe = KiwiSolverRecipe()

0 commit comments

Comments
 (0)