aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-12-02 22:40:08 -0800
committerMax Howell2009-12-12 16:24:14 +0000
commit2adb070330fa4b99d4b5f6b5252cc99d26ef742b (patch)
tree6f36a7ca980c3e227623d47929b48ff98e9c36b1 /Library
parent944fa2f960ea33b3f395d22446f2147d2d27513b (diff)
downloadhomebrew-2adb070330fa4b99d4b5f6b5252cc99d26ef742b.tar.bz2
Fix gmp formula for 10.5 / MacPro.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gmp.rb29
1 files changed, 22 insertions, 7 deletions
diff --git a/Library/Formula/gmp.rb b/Library/Formula/gmp.rb
index 312bd0940..c4f5594c4 100644
--- a/Library/Formula/gmp.rb
+++ b/Library/Formula/gmp.rb
@@ -5,16 +5,31 @@ class Gmp <Formula
homepage 'http://gmplib.org/'
sha1 'acbd1edc61230b1457e9742136994110e4f381b2'
+ def options
+ [
+ ["--skip-check", "Do not run 'make check' to verify libraries. (Not recommended.)"]
+ ]
+ end
+
def install
- if MACOS_VERSION == 10.6
- # On OS X 10.6, some tests fail under LLVM
- ENV.gcc_4_2
- end
+ # On OS X 10.6, some tests fail under LLVM
+ ENV.gcc_4_2
+
+ args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ # 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"
+ end
+
+ system "./configure", *args
+ system "make"
+ ENV.j1 # Don't install in parallel
system "make install"
- # Verify that the library compiled correctly.
- system "make check"
+ # Different compilers and options can cause tests to fail even
+ # if everything compiles, so yes, we want to do this step.
+ system "make check" unless ARGV.include? "--skip-check"
end
end