Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Add patch for powerpc
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Feb 29, 2016
1 parent 759612b commit 4a2b4dc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build/pkgs/openblas/patches/powerpc.patch
@@ -0,0 +1,21 @@
commit 41407acc19cd3ca2ee4ab965ed5e19d7776e669e
Author: Sébastien Villemot <sebastien@debian.org>
Date: Mon Nov 9 18:36:04 2015 +0100

Fix detection of POWER architecture 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 d694e74..bcf4c2c 100644
--- a/c_check
+++ b/c_check
@@ -6,6 +6,7 @@ $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");
+$hostarch = "power" if ($hostarch =~ /^(powerpc|ppc).*/);

$binary = $ENV{"BINARY"};

0 comments on commit 4a2b4dc

Please sign in to comment.