fix netifaces recipe
This commit is contained in:
parent
d175c8e896
commit
c84abccbfa
1 changed files with 2 additions and 2 deletions
|
@ -19,10 +19,10 @@ class NetifacesRecipe(CompiledComponentsPythonRecipe):
|
|||
|
||||
if self.ctx.ndk == 'crystax':
|
||||
# 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)
|
||||
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:
|
||||
# https://github.com/kivy/python-for-android/pull/1250/files#diff-569e13021e33ced8b54385f55b49cbe6
|
||||
env['CFLAGS'] += ' -I{}/include/python/'.format(ndk_dir_python)
|
||||
|
|
Loading…
Reference in a new issue