8000 Fix `ImportError` bug: `cannot locate symbol "modf"` · AndyRusso/python-for-android@551d81b · GitHub
[go: up one dir, main page]

Skip to content

Commit 551d81b

Browse files
authored
Fix ImportError bug: cannot locate symbol "modf"
1 parent 52e16db commit 551d81b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonforandroid/recipes/Pillow/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True):
8181

8282
# Link the basic Pillow libraries...no need to add webp's libraries
8383
# since it seems that the linkage is properly made without it :)
84-
env['LIBS'] = ' -lpng -lfreetype -lharfbuzz -ljpeg -lturbojpeg'
84+
env['LIBS'] = ' -lpng -lfreetype -lharfbuzz -ljpeg -lturbojpeg -lm'
8585

8686
# Add libraries locations to LDFLAGS
8787
env['LDFLAGS'] += f' -L{png_lib_dir}'
@@ -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 + " -lm"
94+
env['CFLAGS'] += cflags
9595
return env
9696

9797

0 commit comments

Comments
 (0)
0