Skip to content

Commit 7b24a37

Browse files
committed
Add math library linkage
1 parent c0e1d71 commit 7b24a37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pythonforandroid/recipes/Pillow/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ class PillowRecipe(PyProjectRecipe):
3434
def get_recipe_env(self, arch, **kwargs):
3535
env = super().get_recipe_env(arch, **kwargs)
3636

37+
# Add math library linkage
38+
env["LDFLAGS"] = env.get("LDFLAGS", "") + " -lm"
39+
3740
jpeg = self.get_recipe('jpeg', self.ctx)
3841
jpeg_inc_dir = jpeg_lib_dir = jpeg.get_build_dir(arch.arch)
3942
env["JPEG_ROOT"] = "{}:{}".format(jpeg_lib_dir, jpeg_inc_dir)

0 commit comments

Comments
 (0)