python/build/autotools: add --host=... only if cross-compiling
This commit is contained in:
parent
5b83c834ac
commit
0ffbe5b5ea
|
@ -58,11 +58,13 @@ class AutotoolsProject(MakeProject):
|
|||
'ARFLAGS=' + toolchain.arflags,
|
||||
'RANLIB=' + toolchain.ranlib,
|
||||
'STRIP=' + toolchain.strip,
|
||||
'--host=' + toolchain.host_triplet,
|
||||
'--prefix=' + toolchain.install_prefix,
|
||||
'--disable-silent-rules',
|
||||
]
|
||||
|
||||
if toolchain.host_triplet is not None:
|
||||
configure.append('--host=' + toolchain.host_triplet)
|
||||
|
||||
configure.extend(self.configure_args)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue