Commit 2d25f6f5 authored by Max Kellermann's avatar Max Kellermann

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

parent cf179ec2
......@@ -65,7 +65,6 @@ class OpenSSLProject(MakeProject):
'no-tests',
'no-makedepend',
'--libdir=lib', # no "lib64" on amd64, please
openssl_arch,
'--prefix=' + toolchain.install_prefix,
]
......@@ -73,5 +72,8 @@ class OpenSSLProject(MakeProject):
# workaround for build failures
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)
self.build_make(toolchain, src)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment