aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/ruby.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb
index 072261625..84c4684e1 100644
--- a/Library/Formula/ruby.rb
+++ b/Library/Formula/ruby.rb
@@ -46,6 +46,9 @@ class Ruby < Formula
args << "--disable-dtrace" unless MacOS::CLT.installed?
args << "--without-gmp" if build.without? "gmp"
+ # Reported upstream: https://bugs.ruby-lang.org/issues/10272
+ args << "--with-setjmp-type=setjmp" if MacOS.version == :lion
+
paths = [
Formula["libyaml"].opt_prefix,
Formula["openssl"].opt_prefix