aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-26 08:40:55 -0700
committerAdam Vandenberg2010-04-26 08:40:55 -0700
commit5db925453d7098250bfa3d16057c4d5ed5ce876c (patch)
treeb8810bfaa1643c732439e68cc7be6a65b0e2618a /Library
parent4690baae48f6338c0de2adcf55323754eece8420 (diff)
downloadhomebrew-5db925453d7098250bfa3d16057c4d5ed5ce876c.tar.bz2
Fix gmp for Leopard.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gmp.rb16
1 files changed, 10 insertions, 6 deletions
diff --git a/Library/Formula/gmp.rb b/Library/Formula/gmp.rb
index a8b4b4088..f966100c4 100644
--- a/Library/Formula/gmp.rb
+++ b/Library/Formula/gmp.rb
@@ -7,7 +7,8 @@ class Gmp <Formula
def options
[
- ["--skip-check", "Do not run 'make check' to verify libraries. (Not recommended.)"]
+ ["--skip-check", "Do not run 'make check' to verify libraries. (Not recommended.)"],
+ ["--32-bit", "Force 32-bit on Leopard on 64-bit machines."]
]
end
@@ -15,12 +16,15 @@ class Gmp <Formula
# On OS X 10.6, some tests fail under LLVM
ENV.gcc_4_2
- args = ["--prefix=#{prefix}", "--infodir=#{info}", "--disable-debug", "--disable-dependency-tracking", "--enable-cxx"]
+ args = ["--prefix=#{prefix}", "--infodir=#{info}", "--enable-cxx"]
- # Doesn't compile correctly on 10.5 MacPro in 64 bit mode
- if MACOS_VERSION == 10.5 and Hardware.intel_family == :nehalem
- ENV.m32
- args << "--host=none-apple-darwin"
+ if MACOS_VERSION == 10.5
+ if Hardware.is_32_bit? or ARGV.include? "--32-bit"
+ ENV.m32
+ args << "--host=none-apple-darwin"
+ else
+ ENV.m64
+ end
end
system "./configure", *args