We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ceed049 + e710cfc commit 995d65aCopy full SHA for 995d65a
pythonforandroid/recipes/kiwisolver/__init__.py
@@ -8,12 +8,13 @@ class KiwiSolverRecipe(PyProjectRecipe):
8
depends = ['cppy']
9
need_stl_shared = True
10
11
- # from https://github.com/kivy/python-for-android/issues/3115
12
def get_recipe_env(self, arch, **kwargs):
+ """Override compile and linker flags, refs: #3115 and #3122"""
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
+ env["CFLAGS"] += flags
+ env["CPPFLAGS"] += flags
17
+ env["LDFLAGS"] += " -shared"
18
return env
19
20
0 commit comments