Skip to content

Commit 587ef23

Browse files
Update __init__.py
1 parent 5ba9049 commit 587ef23

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
@@ -106,7 +106,7 @@ def build_arch(self, arch):
106106
android_api=self.ctx.ndk_api,
107107
ndk_android_host=join(
108108
self.ctx.ndk_dir, 'sysroot', 'usr', 'include', android_host))
109-
sysroot = join(self.ctx.ndk_dir, 'platforms', platform_name, 'arch-arm')
109+
sysroot = join(self.ctx.ndk_dir, 'platforms', platform_name, arch.platform_dir)
110110
env['CFLAGS'] = env.get('CFLAGS', '') + ' ' + ndk_flags
111111
env['CPPFLAGS'] = env.get('CPPFLAGS', '') + ' ' + ndk_flags
112112
env['LDFLAGS'] = env.get('LDFLAGS', '') + ' --sysroot={} -L{}'.format(sysroot, join(sysroot, 'usr', 'lib'))

0 commit comments

Comments
 (0)