diff --git a/configs/components/ruby-3.2.rb b/configs/components/ruby-3.2.rb index 11603035..0cc6c674 100644 --- a/configs/components/ruby-3.2.rb +++ b/configs/components/ruby-3.2.rb @@ -120,6 +120,9 @@ end elsif platform.is_macos? special_flags += " --with-openssl-dir=#{settings[:prefix]} " + # configure will pick up libgmp from Homebrew, and the resulting compiler + # warnings cause mis-configuration. + special_flags += ' --without-gmp ' end without_dtrace = [ diff --git a/configs/components/ruby-4.0.rb b/configs/components/ruby-4.0.rb index e9412ff2..2a166f7b 100644 --- a/configs/components/ruby-4.0.rb +++ b/configs/components/ruby-4.0.rb @@ -76,7 +76,12 @@ # want to use/maintain pl-ruby if we don't have to. Instead set baseruby to # "no" which will force ruby to build and use miniruby. special_flags += ' --with-baseruby=no ' - special_flags += " --with-openssl-dir=#{settings[:prefix]} " if platform.is_macos? + if platform.is_macos? + special_flags += " --with-openssl-dir=#{settings[:prefix]} " + # configure will pick up libgmp from Homebrew, and the resulting compiler + # warnings result in mis-configuration. + special_flags += ' --without-gmp ' + end without_dtrace = [ 'macos-all-arm64',