build/openssl: pass --cross-compile-prefix to ./Configure

This commit is contained in:
Max Kellermann
2021-08-06 17:30:45 +02:00
parent 694debd4cc
commit b0e9538855
2 changed files with 4 additions and 1 deletions
android
python/build

@ -48,6 +48,7 @@ class OpenSSLProject(MakeProject):
}
openssl_arch = openssl_archs[toolchain.arch]
cross_compile_prefix = toolchain.toolchain_arch + '-'
subprocess.check_call(['./Configure',
'no-shared',
@ -56,6 +57,7 @@ class OpenSSLProject(MakeProject):
'no-tests',
'no-asm', # "asm" causes build failures on Windows
openssl_arch,
'--cross-compile-prefix=' + cross_compile_prefix,
'--prefix=' + toolchain.install_prefix],
cwd=src, env=toolchain.env)
MakeProject.build(self, toolchain, src)