diff options
Diffstat (limited to 'Library/Formula')
| -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 |
