aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-26 10:03:08 -0700
committerAdam Vandenberg2011-03-26 10:03:08 -0700
commit66468356663b5c0fde99190d65556b56afdb7308 (patch)
tree7ffaf81585134627ada9bd87df0bd0bb91fad2f6 /Library
parentde0073d6f02fc7891700a40ca37b0fd00648b990 (diff)
downloadhomebrew-66468356663b5c0fde99190d65556b56afdb7308.tar.bz2
gmp - help 64-bit detection for newer CPUs
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gmp.rb8
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