Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pythonforandroid/recipes/kiwisolver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ class KiwiSolverRecipe(PyProjectRecipe):
depends = ['cppy']
need_stl_shared = True

# from https://github.com/kivy/python-for-android/issues/3115
def get_recipe_env(self, arch, **kwargs):
"""Override compile and linker flags, refs: #3115 and #3122"""
env = super().get_recipe_env(arch, **kwargs)
flags = " -I" + self.ctx.python_recipe.include_root(arch.arch)
env["CFLAGS"] = flags
env["CPPFLAGS"] = flags
env["CFLAGS"] += flags
env["CPPFLAGS"] += flags
env["LDFLAGS"] += " -shared"
return env


Expand Down
Loading