Skip to content

Commit 995d65a

Browse files
authored
Merge pull request #3128 from kivy/feature/fix_kiwisolver_macos
🐛 Fix the kiwisolver build on macOS, fixes #3122
2 parents ceed049 + e710cfc commit 995d65a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pythonforandroid/recipes/kiwisolver/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +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
1211
def get_recipe_env(self, arch, **kwargs):
12+
"""Override compile and linker flags, refs: #3115 and #3122"""
1313
env = super().get_recipe_env(arch, **kwargs)
1414
flags = " -I" + self.ctx.python_recipe.include_root(arch.arch)
15-
env["CFLAGS"] = flags
16-
env["CPPFLAGS"] = flags
15+
env["CFLAGS"] += flags
16+
env["CPPFLAGS"] += flags
17+
env["LDFLAGS"] += " -shared"
1718
return env
1819

1920

0 commit comments

Comments
 (0)