From 93b6d995658014b344dfb6390feef43cfa07a14a Mon Sep 17 00:00:00 2001 From: Paul Brussee Date: Wed, 22 Jun 2016 00:56:33 +0200 Subject: [PATCH] bugfix include path --- pythonforandroid/recipes/netifaces/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pythonforandroid/recipes/netifaces/__init__.py b/pythonforandroid/recipes/netifaces/__init__.py index e866451af7..5fd54aae4c 100644 --- a/pythonforandroid/recipes/netifaces/__init__.py +++ b/pythonforandroid/recipes/netifaces/__init__.py @@ -10,6 +10,8 @@ class NetifacesRecipe(CompiledComponentsPythonRecipe): def get_recipe_env(self, arch=None): env = super(NetifacesRecipe, self).get_recipe_env(arch) + env['PYTHON_ROOT'] = self.ctx.get_python_install_dir() + env['CFLAGS'] += ' -I' + env['PYTHON_ROOT'] + '/include/python2.7' # Set linker to use the correct gcc env['LDSHARED'] = env['CC'] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions' return env