diff --git a/pythonforandroid/recipes/libcurl/__init__.py b/pythonforandroid/recipes/libcurl/__init__.py index 83e4cf0858..2971532fb1 100644 --- a/pythonforandroid/recipes/libcurl/__init__.py +++ b/pythonforandroid/recipes/libcurl/__init__.py @@ -25,7 +25,7 @@ def build_arch(self, arch): dst_dir = join(self.get_build_dir(arch.arch), 'dist') shprint( sh.Command('./configure'), - '--host=arm-linux-androideabi', + '--host={}'.format(arch.command_prefix), '--enable-shared', '--with-ssl={}'.format(openssl_dir), '--prefix={}'.format(dst_dir), diff --git a/pythonforandroid/recipes/libogg/__init__.py b/pythonforandroid/recipes/libogg/__init__.py index 51320f429d..f85afa23d2 100644 --- a/pythonforandroid/recipes/libogg/__init__.py +++ b/pythonforandroid/recipes/libogg/__init__.py @@ -13,7 +13,7 @@ def build_arch(self, arch): env = self.get_recipe_env(arch) flags = [ '--with-sysroot=' + arch.ndk_platform, - '--host=' + arch.toolchain_prefix, + '--host=' + arch.command_prefix, ] configure = sh.Command('./configure') shprint(configure, *flags, _env=env) diff --git a/pythonforandroid/recipes/libsecp256k1/__init__.py b/pythonforandroid/recipes/libsecp256k1/__init__.py index b2e10cb8f2..f3a2772cf9 100644 --- a/pythonforandroid/recipes/libsecp256k1/__init__.py +++ b/pythonforandroid/recipes/libsecp256k1/__init__.py @@ -19,7 +19,7 @@ def build_arch(self, arch): shprint(sh.Command('./autogen.sh'), _env=env) shprint( sh.Command('./configure'), - '--host=' + arch.toolchain_prefix, + '--host=' + arch.command_prefix, '--prefix=' + self.ctx.get_python_install_dir(arch.arch), '--enable-shared', '--enable-module-recovery', diff --git a/pythonforandroid/recipes/libvorbis/__init__.py b/pythonforandroid/recipes/libvorbis/__init__.py index 4599d319a8..bb30a4473e 100644 --- a/pythonforandroid/recipes/libvorbis/__init__.py +++ b/pythonforandroid/recipes/libvorbis/__init__.py @@ -22,7 +22,7 @@ def build_arch(self, arch): env = self.get_recipe_env(arch) flags = [ '--with-sysroot=' + arch.ndk_platform, - '--host=' + arch.toolchain_prefix, + '--host=' + arch.command_prefix, ] configure = sh.Command('./configure') shprint(configure, *flags, _env=env)