Skip to content

Commit e1c3b51

Browse files
committed
Fixes libiconv & libzbar configure host
Having `--host=x86` was making the configure script fail at enabling shared library build on `x86`. This was resulting in failing to copy `libiconv.so` and `libzbar.so` on `x86` arch.
1 parent 2f98b81 commit e1c3b51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pythonforandroid/recipes/libiconv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def build_arch(self, arch):
2020
with current_directory(self.get_build_dir(arch.arch)):
2121
shprint(
2222
sh.Command('./configure'),
23-
'--host=' + arch.toolchain_prefix,
23+
'--host=' + arch.command_prefix,
2424
'--prefix=' + self.ctx.get_python_install_dir(),
2525
_env=env)
2626
shprint(sh.make, '-j' + str(cpu_count()), _env=env)

pythonforandroid/recipes/libzbar/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def build_arch(self, arch):
3232
shprint(sh.Command('autoreconf'), '-vif', _env=env)
3333
shprint(
3434
sh.Command('./configure'),
35-
'--host=' + arch.toolchain_prefix,
35+
'--host=' + arch.command_prefix,
3636
'--target=' + arch.toolchain_prefix,
3737
'--prefix=' + self.ctx.get_python_install_dir(),
3838
# Python bindings are compiled in a separated recipe

0 commit comments

Comments
 (0)