Skip to content

Commit 210a1a2

Browse files
committed
Fix Pymunk crash on older versions of Android
Seems to be required to link -lm on at least 5.1, but not on 8.0
1 parent cd81a6f commit 210a1a2

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)