gmp: fix 32-bit builds

Closes Homebrew/homebrew#20693.
This commit is contained in:
Adam Vandenberg 2013-06-23 11:15:45 -07:00
parent 6152fcbdd5
commit 2bcf34617c

View file

@ -9,12 +9,16 @@ class Gmp < Formula
option '32-bit'
def install
args = ["--prefix=#{prefix}", "--enable-cxx"]
if build.build_32_bit?
ENV.m32
ENV.append 'ABI', '32'
# https://github.com/mxcl/homebrew/issues/20693
args << "--disable-assembly"
end
system "./configure", "--prefix=#{prefix}", "--enable-cxx"
system "./configure", *args
system "make"
system "make check"
ENV.deparallelize