aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-22 09:18:34 -0500
committerJack Nagel2014-05-22 09:18:34 -0500
commit94ea9449042663838bd9b4f7f507a57838635af3 (patch)
treee6d93aaa91f4f73351c50f7ffa2a76b299b5ff9a /Library
parent70bb0eb575dcf7d767c6d1298d522160812a9d68 (diff)
downloadhomebrew-94ea9449042663838bd9b4f7f507a57838635af3.tar.bz2
mpfr: let the build system detect the arch to build for
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mpfr.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/Library/Formula/mpfr.rb b/Library/Formula/mpfr.rb
index 1fc0d1a05..a0b8e7963 100644
--- a/Library/Formula/mpfr.rb
+++ b/Library/Formula/mpfr.rb
@@ -28,18 +28,8 @@ class Mpfr < Formula
end
def install
- args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
-
- # Build 32-bit where appropriate, and help configure find 64-bit CPUs
- if MacOS.prefer_64_bit? and not build.build_32_bit?
- ENV.m64
- args << "--build=x86_64-apple-darwin"
- else
- ENV.m32
- args << "--build=none-apple-darwin"
- end
-
- system "./configure", *args
+ ENV.m32 if build.build_32_bit?
+ system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make"
system "make check"
system "make install"