Skip to content

Commit 929d727

Browse files
authored
Merge pull request #2399 from viblo/pymunk-crash
Fix Pymunk crash on older versions of Android
2 parents 16f1c26 + 210a1a2 commit 929d727

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonforandroid/recipes/pymunk/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class PymunkRecipe(CompiledComponentsPythonRecipe):
1010

1111
def get_recipe_env(self, arch):
1212
env = super().get_recipe_env(arch)
13-
env["LDFLAGS"] += " -llog"
13+
env["LDFLAGS"] += " -llog" # Used by Chipmunk cpMessage
14+
env["LDFLAGS"] += " -lm" # For older versions of Android
1415
return env
1516

1617

0 commit comments

Comments
 (0)