Skip to content

Commit 5e55c42

Browse files
committed
numpy: force libc link, other numpy will complain about multiarray.so having __sF symbol not found. It make it work for API 21 (tested on Android 5.1)
Maybe android/ndk#272. But adding -lc is enough to have numpy not complaining about __sF missing anymore (stdout/stderr/stdin)
1 parent 403079d commit 5e55c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipes/numpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_recipe_env(self, arch):
3636
flags += " -I{}".format(join(src_dir, 'crystax', 'include'))
3737
flags += " -L{}".format(join(src_dir, 'crystax', 'libs', arch.arch))
3838
flags += ' -I{}'.format(py_inc_dir)
39-
flags += ' -L{} -lpython{}'.format(py_lib_dir, py_ver)
39+
flags += ' -L{} -lpython{} -lc'.format(py_lib_dir, py_ver)
4040
if 'python3' in self.ctx.python_recipe.name:
4141
flags += 'm'
4242

0 commit comments

Comments
 (0)