aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-19 10:52:03 -0700
committerAdam Vandenberg2011-06-19 10:52:03 -0700
commit3722746ae6c937db5dda9efc0e1368d4f0f51033 (patch)
treea2e01107067f0fcdf2b5999b2857efc011d4d951 /Library/Formula
parent6f88f1a1b278e425a95d4262513e1e60db647ffb (diff)
downloadhomebrew-3722746ae6c937db5dda9efc0e1368d4f0f51033.tar.bz2
mpfr: change 32/64 logic
mpfr needs to have the same 32/64 bit logic that gmp does
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mpfr.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/Library/Formula/mpfr.rb b/Library/Formula/mpfr.rb
index 2139e3b1b..80aec07b8 100644
--- a/Library/Formula/mpfr.rb
+++ b/Library/Formula/mpfr.rb
@@ -16,16 +16,19 @@ class Mpfr < Formula
end
def install
- args = []
+ args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
- if Hardware.is_32_bit? or ARGV.include? "--32-bit"
+ # Build 32-bit where appropriate, and help configure find 64-bit CPUs
+ # Note: This logic should match what the GMP formula does.
+ 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", "--disable-dependency-tracking", "--prefix=#{prefix}", *args
+ system "./configure", *args
system "make install"
end
end