diff options
| author | Adam Vandenberg | 2011-03-26 10:03:08 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-26 10:03:08 -0700 |
| commit | 66468356663b5c0fde99190d65556b56afdb7308 (patch) | |
| tree | 7ffaf81585134627ada9bd87df0bd0bb91fad2f6 /Library | |
| parent | de0073d6f02fc7891700a40ca37b0fd00648b990 (diff) | |
| download | homebrew-66468356663b5c0fde99190d65556b56afdb7308.tar.bz2 | |
gmp - help 64-bit detection for newer CPUs
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gmp.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Formula/gmp.rb b/Library/Formula/gmp.rb index d2826c9ca..d01c37ca0 100644 --- a/Library/Formula/gmp.rb +++ b/Library/Formula/gmp.rb @@ -22,11 +22,13 @@ class Gmp < Formula args = ["--prefix=#{prefix}", "--infodir=#{info}", "--enable-cxx"] - if Hardware.is_32_bit? or ARGV.include? "--32-bit" + # Build 32-bit where appropriate, and help configure find 64-bit CPUs + if MacOS.prefer_64_bit? and not ARGV.include? "--32-bit" + ENV.m64 + args << "--build=x86_64-apple-darwin" + else ENV.m32 args << "--host=none-apple-darwin" - else - ENV.m64 end system "./configure", *args |
