>From 4b5b999b19d94a469714f2a9ef2b811654120ddd Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Thu, 19 Feb 2009 12:09:45 -0800 Subject: [PATCH] Fix gmp for darwin-x86 on 32-bit OS, 64-bit system * Manually setting ABI=32 and host=none-apple-darwin8 was causing configure to fail for gmp 4.2.1. In gmp 4.2.4, the assembler errors appear to be fixed, so the host override is no longer needed. I can compile without the patch for 4.2.1, so I removed it too. This has also been tested on a 32-bit system. --- gub/specs/gmp.py | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/gub/specs/gmp.py b/gub/specs/gmp.py index 8cda7f7..61a73f8 100644 --- a/gub/specs/gmp.py +++ b/gub/specs/gmp.py @@ -39,17 +39,7 @@ class Gmp__darwin (Gmp): '%(install_prefix)s/include/gmp.h') class Gmp__darwin__x86 (Gmp__darwin): - def patch (self): - Gmp__darwin.patch (self) - self.apply_patch ('gmp-4.2.1-x86fat.patch') - - def configure_command (self): - - ## bypass oddball assembler errors. - c = Gmp__darwin.configure_command (self) - c = re.sub ('host=[^ ]+', 'host=none-apple-darwin8', c) - c = re.sub ('--target=[^ ]+', ' ', c) - return c + source = 'ftp://ftp.gnu.org/pub/gnu/gmp/gmp-4.2.4.tar.gz' class Gmp__cygwin (Gmp): source = 'ftp://ftp.gnu.org/pub/gnu/gmp/gmp-4.1.4.tar.gz' -- 1.6.1.3