Skip to content

Commit

Permalink
Fixes libiconv & libzbar configure host
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AndreMiras authored and joergbrech committed Nov 10, 2019
1 parent f1644d6 commit c5d6be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pythonforandroid/recipes/libiconv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def build_arch(self, arch):
with current_directory(self.get_build_dir(arch.arch)):
shprint(
sh.Command('./configure'),
'--host=' + arch.toolchain_prefix,
'--host=' + arch.command_prefix,
'--prefix=' + self.ctx.get_python_install_dir(),
_env=env)
shprint(sh.make, '-j' + str(cpu_count()), _env=env)
Expand Down
2 changes: 1 addition & 1 deletion pythonforandroid/recipes/libzbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def build_arch(self, arch):
shprint(sh.Command('autoreconf'), '-vif', _env=env)
shprint(
sh.Command('./configure'),
'--host=' + arch.toolchain_prefix,
'--host=' + arch.command_prefix,
'--target=' + arch.toolchain_prefix,
'--prefix=' + self.ctx.get_python_install_dir(),
# Python bindings are compiled in a separated recipe
Expand Down

0 comments on commit c5d6be8

Please sign in to comment.