Skip to content

Commit 5bac15a

Browse files
authored
Merge pull request #1746 from martin-frbg/issue1674
Assume cross-compilation if host and target os differ
2 parents e11126b + e17f969 commit 5bac15a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

c_check

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,15 @@ $data =~ /globl\s([_\.]*)(.*)/;
224224
$need_fu = $1;
225225

226226
$cross = 0;
227-
$cross = 1 if ($os ne $hostos);
228227

229228
if ($architecture ne $hostarch) {
230229
$cross = 1;
231230
$cross = 0 if (($hostarch eq "x86_64") && ($architecture eq "x86"));
232231
$cross = 0 if (($hostarch eq "mips64") && ($architecture eq "mips"));
233232
}
234233

234+
$cross = 1 if ($os ne $hostos);
235+
235236
$openmp = "" if $ENV{USE_OPENMP} != 1;
236237

237238
$linker_L = "";

0 commit comments

Comments
 (0)