We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e1d71 commit f87fe51Copy full SHA for f87fe51
1 file changed
pythonforandroid/recipes/Pillow/__init__.py
@@ -34,7 +34,10 @@ class PillowRecipe(PyProjectRecipe):
34
def get_recipe_env(self, arch, **kwargs):
35
env = super().get_recipe_env(arch, **kwargs)
36
37
- jpeg = self.get_recipe('jpeg', self.ctx)
+ # Add math library linkage
38
+ env["LDFLAGS"] = env.get("LDFLAGS", "") + " -lm"
39
+
40
+ jpeg = self.get_recipe("jpeg", self.ctx)
41
jpeg_inc_dir = jpeg_lib_dir = jpeg.get_build_dir(arch.arch)
42
env["JPEG_ROOT"] = "{}:{}".format(jpeg_lib_dir, jpeg_inc_dir)
43
0 commit comments