From 1c23aec45ee148e974e3f80abb7d823441aeaec7 Mon Sep 17 00:00:00 2001 From: chdiza Date: Sun, 23 Mar 2014 01:25:38 -0400 Subject: ruby: Pass --without-gmp unless build.with? "gmp" Ruby will pick up gmp if it's on your machine, unless it's specifically told to not look for gmp. This is true regardless of whether the user invokes the Homebrew flag --with-gmp. It's safest to force ruby to not look for gmp unless the user has specifically requested gmp with the Homebrew option. Otherwise, if the user brews ruby with gmp already on the machine, then later removes gmp, then ruby is broken. Closes #27795. Signed-off-by: Jack Nagel --- Library/Formula/ruby.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Formula') diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb index 6e2a1b406..49ed310af 100644 --- a/Library/Formula/ruby.rb +++ b/Library/Formula/ruby.rb @@ -37,6 +37,7 @@ class Ruby < Formula args << "--with-out-ext=tk" if build.without? "tcltk" args << "--disable-install-doc" if build.without? "doc" args << "--disable-dtrace" unless MacOS::CLT.installed? + args << "--without-gmp" if build.without? "gmp" paths = [ Formula["libyaml"].opt_prefix, -- cgit v1.2.3