python/build/openssl: pass arch only if cross-compiling

This commit is contained in:
Max Kellermann 2023-09-26 15:31:00 +02:00
parent cf179ec294
commit 2d25f6f57f
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,6 @@ class OpenSSLProject(MakeProject):
'no-tests', 'no-tests',
'no-makedepend', 'no-makedepend',
'--libdir=lib', # no "lib64" on amd64, please '--libdir=lib', # no "lib64" on amd64, please
openssl_arch,
'--prefix=' + toolchain.install_prefix, '--prefix=' + toolchain.install_prefix,
] ]
@ -73,5 +72,8 @@ class OpenSSLProject(MakeProject):
# workaround for build failures # workaround for build failures
configure.append('no-asm') configure.append('no-asm')
if toolchain.host_triplet is not None:
configure.append(openssl_archs[toolchain.host_triplet])
subprocess.check_call(configure, cwd=src, env=toolchain.env) subprocess.check_call(configure, cwd=src, env=toolchain.env)
self.build_make(toolchain, src) self.build_make(toolchain, src)