Subject: | Build failure on x86_64 Mac |
Date: | Tue, 13 Mar 2012 00:33:37 -0500 |
To: | bug-Math-Cephes [...] rt.cpan.org |
From: | Ian Barton <ian [...] bartonia.net> |
Perl verson: 5.12.3
Operating System: Mac OS X 10.7.3 (Lion) Darwin 11.3.0 Darwin Kernel Version 11.3.0 x86_64
Math::Cephes appears to build on Mac OS X Lion but many of the tests fail. A review of the build process revealed that the Makefile is not being created properly to handle the x86_64 build type. The following patch appears to resolve the issue:
--- Makefile.PL 2009-01-05 18:59:24.000000000 -0600
+++ Makefile.PL 2012-03-10 10:47:55.000000000 -0600
@@ -78,7 +78,7 @@
elsif ($is_dar) {
require POSIX;
my $machine = (POSIX::uname())[4];
- if ($machine eq 'i386') {
+ if ($machine eq 'i386' or $machine eq 'x86_64') {
$defs{IBMPC} = 1;
}
else {