Skip to content

Commit 6ed7023

Browse files
authored
Fixes ndk_include_dir on lxml (#2495)
1 parent 55e87e4 commit 6ed7023

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pythonforandroid/recipes/lxml/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ def get_recipe_env(self, arch):
5151
env['LIBS'] += ' -lxml2'
5252

5353
# android's ndk flags
54-
ndk_lib_dir = arch.ndk_lib_dir
55-
ndk_include_dir = self.ndk_include_dir
56-
cflags += ' -I' + ndk_include_dir
57-
env['LDFLAGS'] += ' -L' + ndk_lib_dir
54+
cflags += ' -I' + self.ctx.ndk_include_dir
55+
env['LDFLAGS'] += ' -L' + arch.ndk_lib_dir
5856
env['LIBS'] += ' -lz -lm -lc'
5957

6058
if cflags not in env['CFLAGS']:

0 commit comments

Comments
 (0)