From: Sébastien Villemot Date: Wed, 29 Apr 2015 16:14:21 +0000 (+0200) Subject: Fix detection of ARM architectures in c_check. X-Git-Tag: v0.2.15^2~61^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=642aaba2e0d8d2d8252874df171606cde8d20b83;p=platform%2Fupstream%2Fopenblas.git Fix detection of ARM architectures in c_check. This is necessary to avoid the false detection of a cross-compiling environment. --- diff --git a/c_check b/c_check index fbe9c9f..99de070 100644 --- a/c_check +++ b/c_check @@ -4,6 +4,8 @@ $hostos = `uname -s | sed -e s/\-.*//`; chop($hostos); $hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch); $hostarch = "x86_64" if ($hostarch eq "amd64"); +$hostarch = "arm" if ($hostarch =~ /^arm.*/); +$hostarch = "arm64" if ($hostarch eq "aarch64"); $binary = $ENV{"BINARY"};