fix netifaces recipe
This commit is contained in:
parent
fc797d9b20
commit
5db6a512c0
1 changed files with 2 additions and 2 deletions
|
@ -19,10 +19,10 @@ class NetifacesRecipe(CompiledComponentsPythonRecipe):
|
||||||
|
|
||||||
if self.ctx.ndk == 'crystax':
|
if self.ctx.ndk == 'crystax':
|
||||||
# only keeps major.minor (discards patch)
|
# only keeps major.minor (discards patch)
|
||||||
python_version = self.ctx.python_recipe.version[0:3]
|
python_version = self.ctx.python_recipe.version
|
||||||
ndk_dir_python = os.path.join(self.ctx.ndk_dir, 'sources/python/', python_version)
|
ndk_dir_python = os.path.join(self.ctx.ndk_dir, 'sources/python/', python_version)
|
||||||
env['LDFLAGS'] += ' -L{}'.format(os.path.join(ndk_dir_python, 'libs', arch.arch))
|
env['LDFLAGS'] += ' -L{}'.format(os.path.join(ndk_dir_python, 'libs', arch.arch))
|
||||||
env['LDFLAGS'] += ' -lpython{}m'.format(python_version)
|
env['LDFLAGS'] += ' -lpython{}'.format(python_version)
|
||||||
# until `pythonforandroid/archs.py` gets merged upstream:
|
# until `pythonforandroid/archs.py` gets merged upstream:
|
||||||
# https://github.com/kivy/python-for-android/pull/1250/files#diff-569e13021e33ced8b54385f55b49cbe6
|
# https://github.com/kivy/python-for-android/pull/1250/files#diff-569e13021e33ced8b54385f55b49cbe6
|
||||||
env['CFLAGS'] += ' -I{}/include/python/'.format(ndk_dir_python)
|
env['CFLAGS'] += ' -I{}/include/python/'.format(ndk_dir_python)
|
||||||
|
|
Loading…
Reference in a new issue