Skip to content

Commit ccd163d

Browse files
authored
Merge pull request #3256 from DexerBR/pillow-recipe
Fix `libm` linkage for Pillow recipe builds
2 parents c0e1d71 + 7b24a37 commit ccd163d

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)