Skip to content

Commit 995d65a

Browse files
authored
Merge pull request kivy#3128 from kivy/feature/fix_kiwisolver_macos
🐛 Fix the kiwisolver build on macOS, fixes kivy#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

Lines changed: 4 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy