From e17f969fa0f7e8c9f5525577198a17fd7a9da21a Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Thu, 30 Aug 2018 13:28:46 +0200 Subject: [PATCH] Assume cross-compilation if host and target os differ fixes 1674 --- c_check | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c_check b/c_check index 3831d7aa3..64009504c 100644 --- a/c_check +++ b/c_check @@ -223,7 +223,6 @@ $data =~ /globl\s([_\.]*)(.*)/; $need_fu = $1; $cross = 0; -$cross = 1 if ($os ne $hostos); if ($architecture ne $hostarch) { $cross = 1; @@ -231,6 +230,8 @@ if ($architecture ne $hostarch) { $cross = 0 if (($hostarch eq "mips64") && ($architecture eq "mips")); } +$cross = 1 if ($os ne $hostos); + $openmp = "" if $ENV{USE_OPENMP} != 1; $linker_L = "";