ports/math/gotoblas/files/patch-c_check
Maho Nakata 4eaeda46f9 Update to 2.1.11p1.
Partially based on: infofarmer@'s patch.
2010-02-02 07:57:50 +00:00

20 lines
689 B
Text

--- c_check~ 2009-08-27 01:40:47.000000000 +0900
+++ c_check 2009-09-03 15:44:04.000000000 +0900
@@ -2,7 +2,7 @@
# Checking cross compile
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
-$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
+$hostarch = `uname -m | sed -e s/i.86/x86/ | sed -e s/amd64/x86_64/` ;chop($hostarch);
$binary = $ENV{"BINARY"};
@@ -143,7 +143,7 @@
# print $data, "\n";
print MAKEFILE "OSNAME=$os\n";
-print MAKEFILE "ARCH=$architecture\n";
+print MAKEFILE "GARCH=$architecture\n";
print MAKEFILE "C_COMPILER=$compiler\n";
print MAKEFILE "BINARY32=\n" if $binformat ne bin32;
print MAKEFILE "BINARY64=\n" if $binformat ne bin64;