Skip to content

Commit 4b1c7d8

Browse files
authored
Adds libm to Pillow recipe (#2465)
Fixes: ``` ImportError: dlopen failed: cannot locate symbol "log" referenced by "_imaging.so"... ```
1 parent f538561 commit 4b1c7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipes/Pillow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True):
9191
env['LDFLAGS'] += f' -L{join(webp_install, "lib")}'
9292
env['LDFLAGS'] += f' -L{ndk_lib_dir}'
9393
if cflags not in env['CFLAGS']:
94-
env['CFLAGS'] += cflags
94+
env['CFLAGS'] += cflags + " -lm"
9595
return env
9696

9797

0 commit comments

Comments
 (0)