Skip to content

Commit e17f969

Browse files
authored
Assume cross-compilation if host and target os differ
fixes 1674
1 parent 61659f8 commit e17f969

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
@@ -223,14 +223,15 @@ $data =~ /globl\s([_\.]*)(.*)/;
223223
$need_fu = $1;
224224

225225
$cross = 0;
226-
$cross = 1 if ($os ne $hostos);
227226

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

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

236237
$linker_L = "";

0 commit comments

Comments
 (0)