We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b88f09 commit d1eeab0Copy full SHA for d1eeab0
pythonforandroid/archs.py
@@ -49,6 +49,11 @@ def get_env(self, with_flags_in_cc=True):
49
sysroot = self.ctx.ndk_platform
50
env['CFLAGS'] += ' -I{}'.format(self.ctx.ndk_platform)
51
env['CFLAGS'] += ' -isysroot {} '.format(sysroot)
52
+ env['CFLAGS'] += '-I' + join(self.ctx.get_python_install_dir(),
53
+ 'include/python{}'.format(
54
+ self.ctx.python_recipe.version[0:3])
55
+ )
56
+
57
env['LDFLAGS'] += '--sysroot {} '.format(self.ctx.ndk_platform)
58
59
env["CXXFLAGS"] = env["CFLAGS"]
0 commit comments