Skip to content

Commit 9429fef

Browse files
Update __init__.py
1 parent 2dab5ae commit 9429fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipes/python3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def build_arch(self, arch):
100100
hostpython_dir=self.get_recipe('hostpython3', self.ctx).get_path_to_python(),
101101
old_path=env['PATH'])
102102

103-
ndk_flags = ('--sysroot={ndk_sysroot} -D__ANDROID_API__={android_api} '
103+
ndk_flags = ('-fPIC --sysroot={ndk_sysroot} -D__ANDROID_API__={android_api} '
104104
'-isystem {ndk_android_host}').format(
105105
ndk_sysroot=join(self.ctx.ndk_dir, 'sysroot'),
106106
android_api=self.ctx.ndk_api,

0 commit comments

Comments
 (0)